/* Main Styles for VYBO Staff Management */
:root {
    --primary-color: #4a6fff;
    --primary-dark: #3a5ce4;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --background-light: #f7f9fc;
    --text-color: #333;
    --border-color: #e1e4e8;
    
    /* Enterprise Login Colors */
    --enterprise-primary: #1a365d;
    --enterprise-secondary: #2d3748;
    --enterprise-accent: #3182ce;
    --enterprise-light: #f7fafc;
    --enterprise-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --enterprise-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Variables */
.dark-mode {
    --primary-color: #5f7fff;
    --primary-dark: #4b6aff;
    --secondary-color: #8a919a;
    --background-light: #1a1d21;
    --text-color: #e0e0e0;
    --border-color: #3a3f48;
    --card-bg: #252a33;
    --input-bg: #2c333d;
    --table-header-bg: #3a414c;
    --table-row-hover: #2a303a;
    --navbar-bg: #252a33;
    --navbar-text: #e0e0e0;
    --dashboard-header-bg: #252a33;
    
    /* Dark mode enterprise colors */
    --enterprise-primary: #2d3748;
    --enterprise-secondary: #4a5568;
    --enterprise-light: #1a202c;
    --enterprise-gradient: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

/* Import Inter font for modern look */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Enterprise Login Styles */
.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--enterprise-gradient);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.login-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--enterprise-gradient);
    opacity: 0.95;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

.enterprise-login-container {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: calc(100vh - 80px);
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--enterprise-shadow);
    margin-top: 40px;
    margin-bottom: 40px;
    overflow: hidden;
}

.dark-mode .enterprise-login-container {
    background: rgba(45, 55, 72, 0.95);
}

/* Left Side - Branding */
.login-branding {
    flex: 1;
    padding: 60px;
    background: var(--enterprise-primary);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.company-logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    backdrop-filter: blur(10px);
}

.logo-icon i {
    font-size: 30px;
    color: white;
}

.logo-text h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
}

.logo-text span {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.branding-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

.branding-content p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.feature-item i {
    margin-right: 15px;
    font-size: 18px;
    color: #60a5fa;
}

.feature-item span {
    font-weight: 500;
}

/* Right Side - Login Form */
.login-form-section {
    flex: 1;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.card-header {
    text-align: center;
    margin-bottom: 40px;
}

.card-header h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--enterprise-primary);
    margin-bottom: 10px;
}

.dark-mode .card-header h3 {
    color: var(--text-color);
}

.card-header p {
    color: var(--secondary-color);
    font-size: 16px;
}

.enterprise-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.enterprise-form .form-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--enterprise-primary);
    font-size: 14px;
}

.dark-mode .enterprise-form .form-label {
    color: var(--text-color);
}

.enterprise-form .form-label i {
    margin-right: 8px;
    font-size: 14px;
}

.enterprise-input {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.dark-mode .enterprise-input {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.enterprise-input:focus {
    outline: none;
    border-color: var(--enterprise-accent);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    transform: translateY(-2px);
}

.enterprise-input::placeholder {
    color: #a0aec0;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--enterprise-accent);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--secondary-color);
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 8px;
}

.forgot-link {
    color: var(--enterprise-accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-enterprise {
    width: 100%;
    padding: 15px;
    background: var(--enterprise-accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-enterprise i {
    margin-right: 10px;
}

.btn-enterprise:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(49, 130, 206, 0.3);
}

.btn-enterprise:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 30px;
    text-align: center;
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--secondary-color);
    padding: 15px;
    background: rgba(49, 130, 206, 0.05);
    border-radius: 8px;
}

.security-notice i {
    margin-right: 8px;
    color: var(--enterprise-accent);
}

.enterprise-alert {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
}

.enterprise-alert i {
    margin-right: 10px;
}

/* Footer */
.enterprise-footer {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    margin-top: auto;
}

.dark-mode .enterprise-footer {
    background: rgba(45, 55, 72, 0.3);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.powered-by {
    color: white;
    font-size: 14px;
}

.powered-by strong {
    font-weight: 600;
    margin-left: 5px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .enterprise-login-container {
        flex-direction: column;
        margin: 20px;
        min-height: calc(100vh - 120px);
    }
    
    .login-branding {
        padding: 40px;
        text-align: center;
    }
    
    .branding-content h2 {
        font-size: 24px;
    }
    
    .branding-content p {
        font-size: 14px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .login-branding {
        padding: 30px 20px;
    }
    
    .login-form-section {
        padding: 40px 20px;
    }
    
    .company-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .feature-item {
        padding: 12px 15px;
    }
    
    .enterprise-login-container {
        margin: 10px;
        border-radius: 15px;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    transition: background-color 0.3s, color 0.3s;
}

/* Override body styles for login page */
body.login-body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--enterprise-gradient);
    line-height: 1.5;
}

/* Alert Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.dark-mode .alert-success {
    background-color: #1e4620;
    border-color: #2d5f30;
    color: #7dd87f;
}

.dark-mode .alert-info {
    background-color: #1e3a3f;
    border-color: #2d5862;
    color: #7dd3dd;
}

.dark-mode .alert-warning {
    background-color: #3f3a1e;
    border-color: #62582d;
    color: #ffc107;
}

.dark-mode .alert-danger {
    background-color: #3f1e20;
    border-color: #622d30;
    color: #ff7b7f;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.dark-mode .navbar {
    background-color: var(--navbar-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Cards */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.dark-mode .card {
    background-color: var(--card-bg);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.02);
    transition: border-color 0.3s, background-color 0.3s;
}

.dark-mode .card-header {
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.2);
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.02);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.table th,
.table td {
    padding: 12px 15px;
    vertical-align: top;
    border-top: 1px solid var(--border-color);
    text-align: left;
    transition: border-color 0.3s;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.02);
    transition: background-color 0.3s, border-color 0.3s;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transition: background-color 0.3s;
}

.dark-mode .table thead th {
    background-color: var(--table-header-bg);
    border-bottom: 2px solid var(--border-color);
}

.dark-mode .table tbody tr:hover {
    background-color: var(--table-row-hover);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.3s, color 0.3s;
}

.dark-mode .form-control {
    background-color: var(--input-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(74, 111, 255, 0.25);
}

.dark-mode .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(95, 127, 255, 0.25);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 10px 15px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-danger {
    color: #fff;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    color: #fff;
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-secondary {
    color: #fff;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

/* Alerts */
.alert {
    position: relative;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Login & Registration */
.auth-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 30px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

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

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
}

.modal-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    margin: 0;
    font-size: 20px;
}

.modal-body {
    margin-bottom: 15px;
}

.modal-footer {
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Blur effect has been removed */

/* Dashboard */
.dashboard-header {
    padding: 30px 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.dashboard-subtitle {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-title {
    color: var(--secondary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    margin: 10px 0;
}

.stat-description {
    color: var(--secondary-color);
    font-size: 14px;
}

/* Utilities */
.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-danger {
    color: var(--danger-color);
}

.text-success {
    color: var(--success-color);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-direction: column;
    }
    
    .nav-links li {
        margin: 5px 0;
        margin-left: 0;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}
