body {
    font-family: sans-serif;
    padding: 20px;
}
h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dashboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding-bottom: 20px;
}
.tile {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 385px;
}
.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.add-tile {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    background: #f0f0f0;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}
.tile strong {
    font-size: 16px;
    display: inline;
    margin-bottom: 5px;
}
.tile p {
    font-size: 14px;
    margin: 5px 0;
}
.buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}
.buttons a {
    display: inline-block;
    margin: 4px 4px 0 0;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.view-btn { background: #28a745; color: white;}
.download-btn { background: #1f2524; color: white;}
.edit-btn { background: #007bff; color: white; }
.delete-btn { background: #dc3545; color: white; }
.view-btn:hover { background-color: #28a7463b; color: black;}
.download-btn:hover { background-color: #afc4c0; color: black;}
.edit-btn:hover { background-color: #007bff49; color: black;}
.delete-btn:hover {background-color: #dc354642; color: black;}

.search-bar {
    margin-bottom: 20px;
    text-align: center;
}
.search-bar input {
    padding: 8px;
    font-size: 16px;
    width: 100%;
    max-width: 800px;
}
.btn {
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-dashboard {
    background-color: #00ff9d;
    color: rgb(68, 68, 68);
}
.btn-dashboard:hover {
    background-color: #00ff9d98;
    color: white;
}

.btn-logout {
    background-color: #31c0f8;
    color: white;
}
.btn-logout:hover {
    background-color: #31c0f885;
    color: black;
}

@media (max-width: 768px) {
    .tile {
        width: 100%;
        max-width: 335px;
    }
    .search-bar input {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .tile {
        width: calc(50% - 20px);
    }
}

@media (min-width: 992px) {
    h2 {
        font-size: 1.3rem;
    }
    .tile {
        width: 380px;
    }
    .tile h3 {
        font-size: 1.1rem;
    }
    .tile p {
        font-size: 0.9rem;
    }
    .search-bar input {
        font-size: 15px;
        padding: 8px 14px;
    }
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #2b2b2b;
    border: 10px solid #2b2b2b73;
    border-radius: 50px;
    margin-bottom: 20px;
    color: white;
}
.header-inner {
    margin-left: 75px;
    margin-right: 75px;
}
.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    flex-wrap: wrap;
}

.filters label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin: 5px 10px;
}

.filters input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filters label:hover {
    color: #007bff;
}

.filters input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.results-counter-container {
    text-align: center;
    width: 100%;
    margin: 0 auto 20px;
}

.results-counter {
    display: inline-block;
    font-size: 1.2rem;
    color: #4a90e2;
    font-weight: bold;
    padding: 8px 16px;
    background-color: #f0f7ff;
    border-radius: 30px;
}

.results-counter.no-results {
    color: #e94e77;
    background-color: #fff0f3;
}

.results-counter.loading {
    color: #0facb1;
    background-color: #f0f0f0;
    border: 0.5px solid #c2f7fa;
}

@media (max-width: 768px) {
    .results-counter {
        font-size: 1rem;
    }
    .header-inner {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* Special Actions Dropdown Styles */
.special-actions-container {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.special-actions-btn {
    background-color: none;
    color: #5649c0;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border: 3px solid #5649c0 ;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.special-actions-btn:hover {
    color: white;
    background-color: #5649c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.special-actions-btn.active {
    color: white;
    margin-bottom: -2px;
    background-color: #5649c0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.special-actions-dropdown {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    position: relative;
    background-color: white;
    min-width: 200px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px;
    z-index: 1;
    border: 3px solid #5649c0;
}

/* When active, animate dropdown open */
.special-actions-dropdown.open {
    max-height: 500px; /* Adjust based on actual content height */
    opacity: 1;
}


.dropdown-item {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #6c5ce7;
    padding-left: 20px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Popup Styles for Super Admin Choice */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.popup-content h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.popup-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.popup-btn {
    flex: 1;
    padding: 20px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    font-size: 24px;
    font-weight: bold;
}

.btn-text {
    font-size: 13px;
    line-height: 1.2;
}

.normal-btn {
    background: #27ae60;
    color: white;
}

.normal-btn:hover {
    background: #229954;
}

.camscan-btn {
    background: #3498db;
    color: white;
}

.camscan-btn:hover {
    background: #2980b9;
}

.popup-cancel {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.popup-cancel:hover {
    background: #c0392b;
}

/* Camscan Upload Interface Styles */
.camscan-upload-content {
    max-width: 550px;
    width: 95%;
}

.upload-area {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    background: #f9f9f9;
}

.upload-area:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.upload-area.dragover {
    border-color: #27ae60;
    background: #e8f8f5;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
    font-weight: bold;
}

.upload-area p {
    margin: 10px 0;
    color: #555;
}

.upload-hint {
    font-size: 14px;
    color: #888;
    font-style: italic;
}

.file-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.file-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.file-details span {
    font-size: 14px;
    color: #495057;
}

#camscanFileName {
    font-weight: bold;
    color: #212529;
}

#camscanFileSize {
    color: #6c757d;
}

#camscanFileType {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.upload-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.process-btn {
    background: #27ae60;
    color: white;
    flex: 1;
}

.process-btn:hover:not(:disabled) {
    background: #229954;
}

.process-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .popup-content {
        padding: 20px;
        margin: 20px;
    }
    
    .popup-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .popup-btn {
        padding: 15px;
    }
    
    .btn-icon {
        font-size: 20px;
    }
    
    .btn-text {
        font-size: 12px;
    }
    
    .camscan-upload-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .file-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .upload-actions {
        flex-direction: column;
        gap: 10px;
    }
}