/* =========================================================
   DOCIFY THEME – FULL CSS
========================================================= */
@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

:root {
    --primary: #0E3A5D;
    --primary-dark: #0A2A45;
    --accent: #6BCF3F;
    --accent-dark: #4FB82E;
    --accent-soft: rgba(107, 207, 63, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
}

/* ===============================
   GLOBAL
================================ */

* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    padding: 40px;
    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary),
        #1f4f6d
    );
    color: #ffffff;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

/* ===============================
   SERVICE GRID (INDEX)
================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--accent);
}

.service-card h3 {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.service-card p {
    font-size: 14px;
    opacity: 0.85;
    min-height: 60px;
}

/* ===============================
   BUTTONS
================================ */

.service-card button,
button.primary {
    margin-top: 15px;
    padding: 10px 22px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.service-card button:hover,
button.primary:hover {
    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary)
    );
    transform: scale(1.03);
}

/* ===============================
   LAYOUT
================================ */

.container {
    max-width: 1200px;
    margin: auto;
    min-height: 100vh;
}

.row {
    display: flex;
    gap: 12px;
}

/* ===============================
   HEADER
================================ */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header h2 {
    margin: 0;
    width: 50%;
}

.back-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    width: 200px;
    transition: all 0.25s ease;
}

.back-btn:hover {
    background: var(--accent-soft);
}

/* ===============================
   CARDS
================================ */

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    margin-bottom: 30px;
    display: block;
}

.card h3 {
    margin-top: 0;
}

/* ===============================
   INPUTS
================================ */

input,
textarea,
button,
select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    margin-top: 10px;
}

input,
textarea {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

/* ===============================
   TABLE
================================ */

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 14px;
}

/* ===============================
   STATUS COLORS
================================ */

.status-processing {
    color: #F4C430;
    font-weight: 600;
}

.status-done {
    color: var(--accent);
    font-weight: 600;
}

.status-error {
    color: #E25555;
    font-weight: 600;
}

/* ===============================
   ZIP DOWNLOAD
================================ */

.download-btn {
    margin-top: 15px;
    display: none;
}

/* ===============================
   SELECT (CUSTOM)
================================ */

select {
    padding: 10px 42px 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    appearance: none;
    cursor: pointer;
    transition: all 0.25s ease;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--accent) 50%),
        linear-gradient(135deg, var(--accent) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 16px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

select:hover,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(107,207,63,0.25);
    outline: none;
}

select option {
    background: #1f3b4d;
    color: #ffffff;
}

.select-sm {
    padding: 8px 36px 8px 12px;
    font-size: 13px;
}

.select-lg {
    padding: 12px 46px 12px 16px;
    font-size: 15px;
}

/* ===============================
   SAMPLE DOWNLOAD BUTTON
================================ */

.sample-download {
    margin-bottom: 12px;
    display: flex;
    justify-content: flex-end;
}

.sample-btn {
    background: rgba(107,207,63,0.12);
    border: 1px dashed rgba(107,207,63,0.6);
    color: var(--accent);
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.sample-btn:hover {
    background: rgba(107,207,63,0.22);
    transform: translateY(-1px);
}

.sample-btn:active {
    transform: scale(0.97);
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 600px) {
    body {
        padding: 20px;
    }
    .row {
        flex-direction: column;
    }
}

/* ===============================
   INLINE PDF DOWNLOAD BUTTON
================================ */

.pdf-download-btn {
    background: rgba(107, 207, 63, 0.15);
    border: 1px solid rgba(107, 207, 63, 0.6);
    color: var(--accent);
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.pdf-download-btn i {
    font-size: 13px;
}

.pdf-download-btn:hover {
    background: rgba(107, 207, 63, 0.3);
    transform: translateY(-1px);
}

.pdf-download-btn:active {
    transform: scale(0.96);
}

/* ===============================
   TABLE IMPROVEMENT
================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background: rgba(0,230,230,0.12);
}

th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #00e6e6;
}

th, td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

td {
    font-size: 13px;
    color: #e0f7ff;
}

/* Row hover */
tbody tr:hover {
    background: rgba(0,230,230,0.08);
}

/* Zebra effect */
tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}


/* ===============================
   BUTTON IMPROVEMENT (SMALL & CLEAN)
================================ */

button {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Primary (main action) */
button.primary {
    background: linear-gradient(135deg,#00e6e6,#00b3b3);
    color: #00202b;
}

/* Secondary */
button.secondary {
    background: transparent;
    border: 1px solid #00e6e6;
    color: #00e6e6;
}

/* Table buttons (small) */
.table-btn {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 14px;
    margin-right: 4px;
}

/* View button */
.btn-view {
    background: rgba(0,230,230,0.15);
    color: #00e6e6;
}

/* Edit button */
.btn-edit {
    background: rgba(255,193,7,0.15);
    color: #ffc107;
}

/* Toggle button */
.btn-toggle {
    background: rgba(255,99,132,0.15);
    color: #ff6b6b;
}

/* Hover effects */
button:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

button:active {
    transform: scale(0.95);
}


/* ===============================
   INPUT & FILTER BAR
================================ */

#search {
    width: 60%;
    display: inline-block;
}

#filterRole {
    width: 38%;
    margin-left: 2%;
}


/* ===============================
   PAGINATION
================================ */

#pageInfo {
    margin: 0 10px;
    font-size: 13px;
    color: #9bb8cc;
}