/* /root/filesystemserver/core/static/core/css/main.css */

/* --- Global & Base Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex-grow: 1; /* Makes the main content grow to fill space */
}

a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* --- Header & Navigation --- */
.header {
    background-color: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header .logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.header .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header .nav-links a, .header .logout-btn {
    color: white;
    text-decoration: none;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    padding: 0;
}

.header .nav-links .nav-user {
    font-weight: 300;
    border-left: 1px solid #a3e9b3;
    padding-left: 1.5rem;
}

.header .logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}

/* --- Footer --- */
.footer {
    background-color: #343a40;
    color: #adb5bd;
    padding: 2rem 0;
    margin-top: auto; /* Pushes footer to the bottom */
    font-size: 0.9rem;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
}

/* --- Form Styles (for Login/Register) --- */
.form-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-container form p {
    margin-bottom: 1rem;
}

.form-container form input[type="text"],
.form-container form input[type="email"],
.form-container form input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    box-sizing: border-box; /* Important for 100% width */
}

.form-container form ul {
    list-style: none;
    padding: 0;
    color: #dc3545;
    font-size: 0.9rem;
}

.form-container button {
    width: 100%;
    padding: 0.75rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-container button:hover {
    background-color: #218838;
}

.form-container .form-link {
    text-align: center;
    margin-top: 1.5rem;
}

/* --- Generic Modal Styles --- */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 100; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
}
.modal-content { 
    background-color: #fefefe; 
    margin: 10% auto; 
    padding: 20px; 
    border: 1px solid #888; 
    width: 80%; 
    max-width: 500px; 
    border-radius: 8px; 
}
.close-button { 
    color: #aaa; 
    float: right; 
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer; 
}

/* --- ZIP Toast Notification --- */
.zip-toast {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 15px;
}
.zip-toast button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}
.zip-toast button:hover {
    background-color: #0056b3;
}
#zip-toast-close-btn {
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0 5px;
    color: #aaa;
}
#zip-toast-close-btn:hover {
    color: white;
}