/* Employee Self-Service Portal - Mobile-First Responsive Styles */

/* Base Styles */
.employee-portal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

/* Header Styles */
.portal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    z-index: 1000;
    margin-bottom: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions {
    flex-shrink: 0;
}

.employee-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-name {
    font-weight: 500;
    color: white;
}

.portal-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.portal-header h1 i {
    color: white;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    text-decoration: none;
    padding: 0;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

.btn-back i {
    font-size: 16px;
    color: white;
}

.btn-action {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-action:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.employee-avatar,
.employee-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.employee-avatar-placeholder {
    background: #1890ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.logout-btn {
    padding: 8px 16px;
    background: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.logout-btn:hover {
    background: #ff7875;
}

/* Navigation Styles */
.portal-navigation {
    position: fixed;
    left: 0;
    top: 56px;
    bottom: 0;
    width: 250px;
    background: #2D3A4A;
    color: white;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 999;
}

.nav-mobile {
    transform: translateX(-100%);
}

.nav-mobile-open {
    transform: translateX(0);
}

.nav-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-header h3 {
    margin: 0;
    font-size: 18px;
}

.nav-close {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.3s;
}

.nav-menu li:hover,
.nav-menu li.active {
    background: #1E88E5;
}

.nav-icon {
    font-size: 20px;
}

.nav-text {
    flex: 1;
}

.nav-badge {
    background: #ff4d4f;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* Content Area */
.portal-body {
    display: flex;
    flex: 1;
    margin-top: 56px;
}

.portal-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    margin-left: 250px;
    min-height: calc(100vh - 64px);
}

/* Footer */
.portal-footer {
    background: #2D3A4A;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content a {
    color: #1890ff;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-container {
    padding: 0;
}

.dashboard-header {
    margin-bottom: 24px;
}

.dashboard-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #333;
}

.text-secondary {
    color: #666;
    margin: 0;
}

.dashboard-stats {
    margin-bottom: 32px;
}

.dashboard-actions {
    margin-top: 32px;
}

.dashboard-actions h4 {
    margin-bottom: 16px;
    font-size: 18px;
    color: #333;
}

.page-container {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-container h3 {
    margin: 0 0 16px 0;
    color: #333;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .employee-name {
        display: none;
    }

    .portal-navigation {
        width: 280px;
    }

    .nav-close {
        display: block;
    }

    .nav-mobile-open + .mobile-menu-overlay {
        display: block;
    }

    .portal-content {
        margin-left: 0;
        padding: 15px;
    }

    .portal-body {
        flex-direction: column;
    }

    .dashboard-stats .ant-col,
    .dashboard-actions .ant-col {
        margin-bottom: 16px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .portal-navigation {
        width: 200px;
    }

    .portal-content {
        margin-left: 200px;
    }
}

/* Loading Styles */
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    gap: 16px;
}

.loading-container p {
    color: #666;
}

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

.login-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.login-header p {
    color: #666;
    margin: 0;
}

.login-form {
    margin-top: 20px;
}

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

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

.error-message {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
    }
}

