/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #1f2937;
}

/* Login Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #4D4DE5 0%, #3d3db8 100%);
}

.login-form {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(77, 77, 229, 0.2);
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 1px solid #e5e7eb;
}

.login-logo {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

/* Logo Image Styles - IMPROVED SIZING */
.logo-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Login logo */
.login-logo .logo-image {
    width: 200px;
    max-height: 75px;
}

/* Sidebar logo - BETTER SIZING */
.sidebar-logo .logo-image {
    width: 160px;
    max-height: 50px;
}

/* Mobile logo - MUCH SMALLER */
.mobile-logo .logo-image {
    width: 100px;
    max-height: 32px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-weight: 600;
}

input[type="password"], input[type="text"], input[type="number"], textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: white;
    color: #1f2937;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4D4DE5;
    box-shadow: 0 0 0 3px rgba(77, 77, 229, 0.1);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #4D4DE5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #3d3db8;
    transform: translateY(-1px);
}

.error-message {
    color: #dc2626;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #4D4DE5;
    color: white;
}

.btn-primary:hover {
    background: #3d3db8;
    transform: translateY(-1px);
}

.btn-success {
    background: #059669;
    color: white;
}

.btn-success:hover {
    background: #047857;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Status Messages */
.status {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
    border: 1px solid;
}

.status.success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.status.error {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.status.info {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid #e5e7eb;
}

.modal h3 {
    margin-bottom: 20px;
    color: #1f2937;
    font-weight: 700;
}

.modal input, .modal textarea, .modal select {
    margin-bottom: 15px;
    font-size: 14px;
}

.modal textarea {
    resize: vertical;
    height: 80px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.modal-btn.primary {
    background: #4D4DE5;
    color: white;
}

.modal-btn.primary:hover {
    background: #3d3db8;
}

.modal-btn.secondary {
    background: #6b7280;
    color: white;
}

.modal-btn.secondary:hover {
    background: #4b5563;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.hidden { display: none; }
.visible { display: block; }

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #4D4DE5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}