/* ====================== TIMESHEET FORM - FIXED DROPDOWN STYLING ====================== */
.timesheet-wrapper {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 35px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}
.timesheet-title {
    text-align: center;
    color: #1e3a8a;
    font-size: 28px;
    margin-bottom: 35px;
    font-weight: 600;
}
.timesheet-message {
    padding: 16px 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
}
.timesheet-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #34d399;
}
.timesheet-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #f87171;
}
/* Form Groups */
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 18px;
}
/* Fix for Dropdowns and Inputs */
.form-control {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    background: #fff !important;
    color: #1f2937 !important;
    line-height: 2 !important;
}
.form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}
/* Specifically fix select dropdowns */
select.form-control {
    height: 50px !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23374151' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592c.858 0 1.318 1.013.753 1.658L8.753 11.14a.5.5 0 0 1-.753 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}
/* Submit Button */
/* Submit Button */
.submit-button {
    width: auto;                  /* Shrinks to content */
    min-width: 200px;             /* Not too small */
    padding: 12px 40px;           /* Comfortable click area */
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;              /* Slightly reduced */
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    display: block;               /* Needed for margin auto */
    margin-left: auto;            /* Centers the button */
    margin-right: auto;
    transition: all 0.3s ease;
}
.submit-button:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    transform: translateY(-2px);
}

/* ====================== MY ACTIVITY PAGE STYLES ====================== */

/* Main Container */
.activity-wrapper {
    width: 100%;
    max-width: none;      /* increase this for even wider table */
    margin: 40px auto;
    padding: 35px 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Title & Subtitle */
.activity-title {
    text-align: center;
    color: #1e3a8a;
    font-size: 35px;
    margin-bottom: 10px;
    font-weight: 600;
}

.activity-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
    font-size: 25px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 24px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background: #e2e8f0;
}

.filter-tab.active {
    background: #2563eb;
    color: white;
}

/* Activity Table Container */
.activity-table-container {
    overflow-x: auto;   /* Allows horizontal scroll on mobile */
}

/* Main Table Styles */
.activity-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

/* Table Header (All Columns) */
.activity-table th {
    background: #f8fafc;
    padding: 18px 14px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;        /* Prevents header text from wrapping */
    font-size: 25px;

}

/* Table Body Cells - Common Styling */
.activity-table td {
    padding: 18px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #1f2937;
    vertical-align: middle;
}

/* ====================== COLUMN-WISE STYLING ====================== */

/* Column 1: Date */
.activity-table td:nth-child(1) {
    white-space: nowrap;
    font-weight: 500;
    font-size: 20px;
}

/* Column 2: Project */
.activity-table td:nth-child(2) {
    min-width: 180px;
    font-weight: 500;
    font-size: 20px;
}

/* Column 3: Task */
.activity-table td:nth-child(3) {
    min-width: 160px;
    font-size: 20px;
}

/* Column 4: Description */
.activity-table td:nth-child(4) {
    min-width: 250px;           /* descriptions are long */
     /*text-align: left;    */
     font-size: 20px;
}

/* Column 5: Hours */
.activity-table td:nth-child(5) {
    text-align: center;
    font-weight: 600;
    min-width: 90px;
    font-size: 20px;
}

/* Column 6: Status */
.activity-table td:nth-child(6) {
    text-align: center;
    min-width: 110px;
    font-size: 20px;
}

/* Remove border from last row */
.activity-table tr:last-child td {
    border-bottom: none;
}

/* ====================== STATUS BADGES ====================== */
.status-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    min-width: 95px;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.status-badge.draft {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    font-size: 20px;
}

.status-badge.validated {
    background-color: #d1fae5;
    color: #166534;
    border: 1px solid #86efac;
    font-weight: 700;
    font-size: 20px;
}

/* Hover effect */
.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
/* Responsive */
@media (max-width: 768px) {
    .timesheet-wrapper {
        margin: 15px;
        padding: 25px 20px;
    }
    
    .activity-wrapper {
        margin: 15px;
        padding: 20px;
    }
   
    .activity-table th,
    .activity-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
}

/* ====================== EMPLOYEE LOGIN PAGE ====================== */
/* ====================== LOGIN CONTAINER - SMALL & COMPACT ====================== */
.login-wrapper {
    max-width: 200px;           /* Good small size - not too narrow */
    width: 60%;
    margin: 80px auto;
    padding: 35px 30px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    text-align: center;
}

/* Title */
.login-wrapper h2 {
    color: #1e3a8a;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

/* Form Groups */
.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 20px;
}

/* Input Fields */
.login-form input[type="text"],
.login-form input[type="email"] {
    width: 100%;
    padding: 13px 15px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 15.5px;
    background: #fff;
    color: #1f2937;
    transition: all 0.3s ease;
}

.login-form input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    outline: none;
}

/* Login Button */
.login-button {
    width: 20%;
    padding: 14px 25px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    transform: translateY(-2px);
}

/* Error Message */
.login-wrapper p[style*="color:red"] {
    background: #fef2f2;
    color: #991b1b !important;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #f87171;
    margin: 18px 0;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
    .login-wrapper {
        margin: 40px 15px;
        padding: 30px 25px;
        max-width: 100%;
    }
}



/* ====================== LOGOUT BUTTON ====================== */

/* FORCE LOGOUT BUTTON STYLE */
a.logout-btn,
a.logout-btn:visited {
    display: inline-block !important;
    /*background: linear-gradient(135deg, #ef4444, #dc2626) !important;*/
    background: linear-gradient(135deg, #ff6b6b, #ff8787) !important;
    color: #ffffff !important;
    padding: 12px 25px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border: none !important;
}

a.logout-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}


/* ====================== LEAVE PAGE ====================== */

.leave-wrapper {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 35px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

/* Balance Cards Grid */
.leave-balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

.leave-balance-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 20px 18px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.leave-balance-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.leave-balance-type {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.leave-balance-numbers {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}

.leave-balance-remaining {
    font-size: 42px;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1;
}

.leave-balance-label {
    font-size: 14px;
    color: #94a3b8;
}

/* Progress bar */
.leave-balance-bar-track {
    background: #e2e8f0;
    border-radius: 999px;
    height: 7px;
    margin-bottom: 10px;
    overflow: hidden;
}

.leave-balance-bar-fill {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
}

.leave-balance-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
}

/* Sections */
.leave-section {
    margin-bottom: 45px;
}

.leave-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Side-by-side date row */
.leave-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Live day counter pill */
.leave-day-count {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin: -10px 0 20px;
    display: inline-block;
}

/* Leave status badges */
.status-badge.leave-draft {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    font-size: 13px;
}

.status-badge.leave-confirm {
    background-color: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
    font-size: 13px;
}

.status-badge.leave-approved {
    background-color: #d1fae5;
    color: #166534;
    border: 1px solid #86efac;
    font-size: 13px;
}

.status-badge.leave-refused {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .leave-wrapper {
        margin: 15px;
        padding: 25px 20px;
    }

    .leave-date-row {
        grid-template-columns: 1fr;
    }

    .leave-balance-remaining {
        font-size: 32px;
    }
}

/* ====================== EXPENSE PAGE ====================== */

.expense-wrapper {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 35px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

/* Paid-by note pill */
.expense-paid-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 22px;
    display: inline-block;
}

/* Expense status badges */
.status-badge.expense-draft {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    font-size: 13px;
}

.status-badge.expense-reported {
    background-color: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
    font-size: 13px;
}

.status-badge.expense-approved {
    background-color: #d1fae5;
    color: #166534;
    border: 1px solid #86efac;
    font-size: 13px;
}

.status-badge.expense-done {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
    font-size: 13px;
}

.status-badge.expense-refused {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .expense-wrapper {
        margin: 15px;
        padding: 25px 20px;
    }
}
