.public-header {
    background: var(--primary-purple);
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    width: 80px;
    height: auto;
}

.title-container {
    flex: 1;
}

.title-container h1 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.title-container h2 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
}

.public-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-section {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-box input,
.search-box select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-box input {
    flex: 1;
    min-width: 200px;
}

.search-box select {
    min-width: 150px;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-purple);
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.attendance-table th,
.attendance-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.attendance-table th {
    background: var(--primary-purple);
    color: white;
    font-weight: 500;
}

.attendance-table tr:hover {
    background: rgba(224, 187, 228, 0.1);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
}

.pagination span {
    color: var(--text-dark);
}

.public-footer {
    text-align: center;
    padding: 2rem;
    background: #f5f5f5;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }
    
    .attendance-table {
        display: block;
        overflow-x: auto;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
} 

.text-center {
    text-align: center !important;
}

.attendance-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.attendance-table td[class*="text-center"] {
    font-family: monospace;
    font-size: 1.1rem;
}

/* Add styles for detail modal */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.detail-table th,
.detail-table td {
    padding: 0.75rem;
    border: 1px solid #eee;
    font-size: 0.9rem;
}

.detail-table th {
    background: var(--primary-purple);
    color: white;
    font-weight: 500;
    white-space: nowrap;
}

.employee-info {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.employee-info h3 {
    color: var(--primary-purple);
    margin: 0;
}

.employee-info p {
    color: var(--text-dark);
    margin: 0.5rem 0 0 0;
}

.btn-detail {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-detail:hover {
    background: var(--primary-pink);
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    min-width: 100px;
}

.status-ontime {
    background-color: #4CAF50;
    color: white;
}

.status-late {
    background-color: #FF9800;
    color: white;
}

.status-absent {
    background-color: #f44336;
    color: white;
}

.status-holiday {
    background-color: #9C27B0;
    color: white;
}

.status-psw {
    background-color: #2196F3;
    color: white;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 2rem auto;
    padding: 2rem;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #000;
}

/* Update table styles */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 1rem;
}

.attendance-table {
    margin: 0;
    width: 100%;
}

.attendance-table th {
    position: sticky;
    top: 0;
    background: var(--primary-purple);
    z-index: 10;
}

/* Update stat cards */
.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.stat-value {
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        padding: 1rem;
        width: calc(100% - 2rem);
    }
    
    .detail-table {
        font-size: 0.8rem;
    }
    
    .detail-table th,
    .detail-table td {
        padding: 0.5rem;
    }
} 

/* Add loading state styles */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-dark);
}

.loading::after {
    content: '';
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 2px solid var(--primary-purple);
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}

.text-error {
    color: #f44336;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
} 

/* Add styles for text ellipsis */
.text-ellipsis {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

/* Update table styles for new columns */
.attendance-table {
    min-width: 1200px; /* Ensure table doesn't get too cramped */
}

.table-container {
    overflow-x: auto; /* Enable horizontal scroll if needed */
} 

/* Icon button style */
.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-icon i {
    font-size: 1rem;
}

.btn-icon:hover {
    background: #8A5B8E;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-icon:active {
    transform: translateY(0);
}

/* Detail modal style */
.detail-modal .modal-content {
    max-width: 1000px;
}

.detail-modal .data-table {
    font-size: 0.9rem;
}

/* Table styles */
.data-table th {
    background: var(--primary-purple);
    color: white;
    position: sticky;
    top: 0;
}

.data-table tbody tr:hover {
    background-color: #f5f5f5;
} 

/* Table cell alignment */
.data-table td {
    vertical-align: middle;
}

.data-table td:last-child {
    text-align: center;
} 

/* Filter Section */
.filter-section {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-box {
    flex: 1;
}

.search-box input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.filter-box {
    display: flex;
    gap: 1rem;
}

.filter-box select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    min-width: 150px;
}

/* Table Styles */
.table-wrapper {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th {
    background: #f8f9fa;
    padding: 1rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    color: var(--text-dark);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.text-center {
    text-align: center !important;
}

/* Pagination Styles */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
}

.page-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Footer Styles */
.public-footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    margin-top: 2rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-title {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .filter-box {
        flex-direction: column;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.8rem;
    }
} 

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th {
    background: #f8f9fa;
    padding: 1rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    color: var(--text-dark);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

/* Status Badge Styles */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    min-width: 100px;
}

.status-badge.hadir {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-badge.terlambat {
    background-color: #fff3e0;
    color: #ef6c00;
}

.status-badge.izin {
    background-color: #e3f2fd;
    color: #1565c0;
}

.status-badge.sakit {
    background-color: #fce4ec;
    color: #c2185b;
}

.status-badge.alpha {
    background-color: #ffebee;
    color: #c62828;
}

/* Cell Alignment */
.text-center {
    text-align: center !important;
}

/* NIP Format */
.data-table td:nth-child(3) {
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Time Format */
.data-table td:nth-child(7),
.data-table td:nth-child(8) {
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Hover Effect */
.data-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Responsive Table */
@media (max-width: 1024px) {
    .table-wrapper {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.8rem;
    }
    
    .status-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .data-table {
        font-size: 0.9rem;
    }
    
    .status-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        min-width: 90px;
    }
    
    .btn-icon {
        width: 28px;
        height: 28px;
    }
    
    .btn-icon i {
        font-size: 0.9rem;
    }
} 

@media (max-width: 480px) {
    .data-table th,
    .data-table td {
        padding: 0.8rem;
    }
    
    .status-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
} 

/* Status Badge Styles */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    text-align: left;
}

.text-center {
    text-align: center;
}

/* Button Icon Style */
.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-purple, #9B6B9E);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #8A5B8E;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}