/* Employee Portal Styles */
.portal-login {
    min-height: 100vh;
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
}

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

.portal-logo {
    width: 100px;
    height: auto;
    margin-bottom: 25px;
}

.login-header h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #8B0000;
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.form-group i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
    padding: 18px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.3);
    background: linear-gradient(135deg, #A52A2A, #8B0000);
}

.login-links {
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-links a {
    color: #8B0000;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #A52A2A;
    text-decoration: underline;
}

/* Error message styling */
.error-message {
    background: #fee;
    color: #c33;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #fcc;
    font-size: 0.9rem;
}

/* Success message styling */
.success-message {
    background: #efe;
    color: #363;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #cfc;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-container {
        padding: 40px 30px;
        margin: 20px;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
    
    .login-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Dashboard Styles */
.employee-dashboard {
    min-height: 100vh;
    background: #f8f9fa;
}

.dashboard-nav {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand img {
    width: 40px;
    height: auto;
}

.nav-brand span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    background: #8B0000;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

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

.dashboard-content {
    display: flex;
    min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-item:hover,
.menu-item.active {
    background: #8B0000;
    color: white;
}

.dashboard-main {
    flex: 1;
    padding: 30px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 30px;
}

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

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
}

.stat-info p {
    color: #666;
    margin: 5px 0 0 0;
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.widget {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.widget h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.announcement-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.announcement-item i {
    color: #8B0000;
    font-size: 1.2rem;
    margin-top: 5px;
}

.announcement-item h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.announcement-item p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.announcement-item .date {
    font-size: 0.8rem;
    color: #999;
}

.quick-actions {
    display: grid;
    gap: 15px;
}

.action-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.action-btn:hover {
    background: #8B0000;
    color: white;
    border-color: #8B0000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-content {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    
    .sidebar-menu li {
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .menu-item {
        white-space: nowrap;
        padding: 10px 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
}
