* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logout-btn { color:#fff !important;}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}


:root {
    --primary: #8b5ceb;
    --secondary: #6c43c0;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    background-color: #f5f7fb;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.5rem;
}

.logo h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--info);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    box-shadow: var(--shadow);
}

/* Main Content Styles */
main {
    padding-bottom: 80px;
}

.section {
    display: block;
    padding: 20px 0;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 70px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

/* Dashboard Styles */
.clock-status {
    text-align: center;
    padding: 15px 0;
}

.current-time {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.clock-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    margin: 10px 0;
}

.clock-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.clock-btn.clocked-in {
    background: var(--danger);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 5px 0;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Appointments Styles */
.appointment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.appointment:hover {
    background: var(--light);
    border-radius: var(--radius);
    padding-left: 10px;
    padding-right: 10px;
}

.appointment:last-child {
    border-bottom: none;
}

.appointment-time {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
    min-width: 80px;
}

.appointment-details h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.appointment-details p {
    font-size: 0.9rem;
    color: var(--gray);
}

.appointment-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-received {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.status-confirmed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.status-in-progress {
    background: rgba(139, 92, 235, 0.2);
    color: var(--primary);
}

.status-completed {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Login Styles */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.login-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 235, 0.2);
}

.login-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.login-btn:hover {
    background: var(--secondary);
}

.demo-login {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.8rem;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 8px;
}

.nav-item.active {
    color: var(--primary);
    background: rgba(139, 92, 235, 0.1);
}

.nav-icon {
    font-size: 1.2rem;
    margin-bottom: 5px;
    transition: var(--transition);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 15px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.report-table th {
    font-weight: 600;
    color: var(--gray);
    background: var(--light);
    position: sticky;
    top: 0;
}

.report-table tr:last-child td {
    border-bottom: none;
}

.report-table tr:hover {
    background: var(--light);
}

.amount {
    font-weight: 600;
    color: var(--success);
}

.total-row {
    background: var(--light) !important;
    font-weight: 600;
}

.total-row td {
    border-top: 2px solid var(--primary);
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 15px;
    overflow-x: auto;
}

.tab {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    color: var(--gray);
    white-space: nowrap;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-icon {
    font-size: 1rem;
    transition: var(--transition);
}

.tab.active .tab-icon {
    transform: scale(1.1);
    color: var(--primary);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Year Tabs */
.year-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 15px;
    overflow-x: auto;
}

.year-tab {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    color: var(--gray);
    white-space: nowrap;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.year-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.year-tab-icon {
    font-size: 0.9rem;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-3px);
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 5px 0;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Profile Styles */
.profile-header {
    text-align: center;
    padding: 20px 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--info);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    margin: 0 auto 15px;
    box-shadow: var(--shadow);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-role {
    color: var(--gray);
    margin-bottom: 20px;
}

.profile-details {
    margin-top: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.detail-item:hover {
    background: var(--light);
    border-radius: var(--radius);
    padding-left: 10px;
    padding-right: 10px;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--gray);
}

.detail-value {
    font-weight: 600;
}

/* Timesheet Styles */
.timesheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.timesheet-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.timesheet-table th,
.timesheet-table td {
    padding: 12px 2px !important;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.timesheet-table th {
    font-weight: 600;
    color: var(--gray);
    background: var(--light);
}

.timesheet-table tr:last-child td {
    border-bottom: none;
}

.timesheet-table tr:hover {
    background: var(--light);
}

.month-hours {
    font-weight: 600;
    color: var(--primary);
}

/* Clock Events */
.clock-event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.clock-event:hover {
    background: var(--light);
    border-radius: var(--radius);
    padding-left: 10px;
    padding-right: 10px;
}

.clock-event:last-child {
    border-bottom: none;
}

.clock-time {
    font-weight: 600;
    color: var(--primary);
}

.clock-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.clock-in {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.clock-out {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--gray);
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

/* Responsive Styles */
@media (min-width: 768px) {
    .container {
        max-width: 750px;
    }
    
    .stats-container,
    .summary-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 970px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--radius);
    color: white;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

.notification.success {
    background: var(--success);
}

.notification.error {
    background: var(--danger);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}



/* Appointments Styles */
.appointment-list {
    max-height: 600px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.appointment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.appointment:hover {
    background-color: var(--light);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: var(--radius);
}

.appointment:last-child {
    border-bottom: none;
}

.appointment-time {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    min-width: 80px;
}

.appointment-details {
    flex: 1;
    margin: 0 15px;
}

.appointment-details h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.appointment-details p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.appointment-details small {
    font-size: 0.8rem;
    color: var(--gray);
}

.appointment-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.status-confirmed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.status-in-progress {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.status-completed {
    background: rgba(107, 114, 128, 0.2);
    color: var(--gray);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Filter Styles */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-tab {
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--gray);
    margin-right: 10px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--light);
    border-color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-link.disabled {
    background: var(--light);
    color: var(--gray);
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-dots {
    color: var(--gray);
    padding: 0 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--gray);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.empty-state p {
    font-size: 0.9rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.8rem;
    transition: var(--transition);
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .container {
        max-width: 750px;
    }
    
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .pagination {
        justify-content: space-between;
    }
    
    .pagination-info {
        margin-right: 0;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 970px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}
