:root {
    --primary-dark: #2c3e50;
    --accent-blue: #3498db;
    --search-btn: #2980b9;
    --success-green: #27ae60;
    --bg-light: #f4f7f6;
    --white: #ffffff;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: var(--bg-light); 
    margin: 0; 
    padding: 20px; 
    color: #333; 
}

.container { 
    background: var(--white); 
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    max-width: 1300px; 
    margin: auto; 
}

.full-width { max-width: 95%; }

/* Header & User Info */
.header-top { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px; 
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-display {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    background: #f0f2f5;
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

/* Stats */
.stats-container { display: flex; gap: 15px; margin-bottom: 25px; }
.stat-box { 
    flex: 1; 
    padding: 15px; 
    background: var(--white); 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    text-align: center; 
    font-size: 14px; 
    color: #7f8c8d; 
}
.stat-box strong { display: block; font-size: 22px; margin-top: 5px; color: var(--primary-dark); }

/* Filter & Forms */
.filter-row { margin-bottom: 20px; background: #f9f9f9; padding: 15px; border-radius: 8px; }
.inline-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.date-small { width: 130px !important; }
.search-large { flex-grow: 1; min-width: 250px; }

input[type="text"], input[type="number"], input[type="password"], select { 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    outline: none; 
    transition: 0.2s; 
}
input:focus { border-color: var(--accent-blue); box-shadow: 0 0 5px rgba(52, 152, 219, 0.2); }

/* Buttons */
.btn { 
    padding: 10px 18px; 
    border-radius: 6px; 
    text-decoration: none; 
    border: none; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 14px; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s; 
}
.btn-search { background: var(--search-btn); color: var(--white); }
.btn-clear { background: #95a5a6; color: var(--white); }
.btn-green { background: var(--success-green); color: var(--white); }
.btn-blue { background: var(--accent-blue); color: var(--white); }
.btn-cyan { background: #17a2b8; color: var(--white); }

/* View Tabs */
.view-buttons { display: flex; gap: 8px; margin-bottom: 20px; }
.btn-view { 
    padding: 8px 20px; 
    background: var(--white); 
    border: 1px solid #ddd; 
    border-radius: 20px; 
    color: #666; 
    text-decoration: none; 
    font-size: 13px; 
}
.btn-view.active { background: var(--primary-dark); color: var(--white); border-color: var(--primary-dark); }

.action-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }

/* Table */
table { width: 100%; border-collapse: collapse; margin-top: 10px; background: var(--white); }
th { 
    text-align: left; 
    padding: 15px; 
    background: #f8f9fa; 
    border-bottom: 2px solid #eee; 
    color: #7f8c8d; 
    font-size: 13px; 
    text-transform: uppercase; 
}
td { padding: 15px; border-bottom: 1px solid #f1f1f1; font-size: 14px; vertical-align: middle; }
.highlight-now { background-color: #fffde7 !important; border-left: 4px solid #f1c40f; }

/* Settings Dropdown */
.settings-dropdown { position: relative; display: inline-block; }
.dropbtn { 
    background: var(--white); 
    border: 1px solid #ddd; 
    border-radius: 50%; 
    width: 40px;
    height: 40px;
    cursor: pointer; 
    font-size: 18px; 
    color: #555; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.dropbtn:hover { background: #f0f2f5; transform: rotate(45deg); }

.dropdown-content { 
    display: none; 
    position: absolute; 
    right: 0; 
    background-color: var(--white); 
    min-width: 180px; 
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15); 
    z-index: 1000; 
    border-radius: 8px; 
    border: 1px solid #eee; 
    overflow: hidden;
}
.settings-dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { 
    color: #333 !important; 
    padding: 12px 16px; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}
.dropdown-content a:hover { background-color: #f8f9fa; color: var(--accent-blue) !important; }
.dropdown-content hr { margin: 0; border: 0; border-top: 1px solid #eee; }

/* Badges & Pagination */
.badge { padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: bold; }
.badge.pending { background: #fef9e7; color: #f39c12; }
.badge.completed { background: #eafaf1; color: #27ae60; }

.pagination { margin-top: 25px; display: flex; justify-content: center; gap: 8px; }
.pagination a { padding: 8px 15px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: var(--primary-dark); }
.pagination a.active { background: var(--primary-dark); color: var(--white); border-color: var(--primary-dark); }

/* Alerts */
.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; border: 1px solid transparent; }
.alert-success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert-error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }
