:root {
    --primary-blue: #2563EB;
    --primary-blue-dark: #1D4ED8;
    --primary-navy: #0A2558;
    --gold: #D4AF37;
    --gold-light: #FDE68A;
    --gold-dark: #92400E;
    --bg-page: #EFF6FF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    font-family: 'Montserrat', 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 10% 10%, #DBEAFE 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, #EDE9FE 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, #E0F2FE 0%, transparent 50%),
        linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    background-attachment: fixed;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    padding: 20px 12px 48px;
}

.background {
    width: 100%;
    max-width: 1600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main_header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
}

.header_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #DBEAFE;
    border: 1px solid #BFDBFE;
    padding: 5px 14px;
    border-radius: 999px;
    color: var(--primary-blue-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.badge_dot {
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary-blue);
}

.header_title {
    font-size: clamp(20px, 3.2vw, 32px);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--primary-navy);
    letter-spacing: 0.5px;
    line-height: 1.25;
}

.header_subtitle {
    font-size: clamp(12px, 1.5vw, 14px);
    color: var(--text-muted);
    font-weight: 500;
    max-width: 90%;
    margin: 0 auto;
}

.content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
}

.input_form_card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: 0 15px 35px -10px rgba(37, 99, 235, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    flex: 1 1 340px;
    max-width: 440px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card_header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #F1F5F9;
}

.card_title {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.35;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form_group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field_label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-navy);
    display: block;
}

.field_hint {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
}

.avatar_picker_row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.avatar_picker_btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    background: #EFF6FF;
    color: var(--primary-blue);
    border: 1.5px dashed #93C5FD;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.avatar_picker_btn:hover {
    background: #DBEAFE;
    border-color: var(--primary-blue);
}

.recrop_btn {
    min-height: 42px;
    padding: 10px 12px;
    background: #FFFBEB;
    color: var(--gold-dark);
    border: 1px dashed #F59E0B;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.recrop_btn:hover {
    background: #FEF3C7;
}

.form_input,
.form_textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-main);
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.2s ease;
}

.form_input:focus,
.form_textarea:focus,
.form_select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.select_wrapper {
    position: relative;
    width: 100%;
}

.form_select {
    width: 100%;
    min-height: 42px;
    padding: 10px 36px 10px 14px;
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-main);
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select_wrapper::after {
    content: "⌵";
    position: absolute;
    right: 14px;
    top: 48%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 800;
    color: var(--text-muted);
    pointer-events: none;
}

/* Searchable Combobox Select */
.searchable_select_wrapper {
    position: relative;
    width: 100%;
}

.searchable_select_input {
    padding-right: 38px;
    cursor: text;
}

.searchable_select_wrapper .select_arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    user-select: none;
}

.searchable_select_wrapper.is_open .select_arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary-blue);
}

.searchable_select_dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: #FFFFFF;
    border: 1.5px solid var(--primary-blue);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 28px -5px rgba(37, 99, 235, 0.2), 0 8px 12px -6px rgba(0, 0, 0, 0.08);
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #BFDBFE #F8FAFC;
    animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.searchable_select_dropdown::-webkit-scrollbar {
    width: 6px;
}

.searchable_select_dropdown::-webkit-scrollbar-track {
    background: #F8FAFC;
    border-radius: var(--radius-sm);
}

.searchable_select_dropdown::-webkit-scrollbar-thumb {
    background: #BFDBFE;
    border-radius: 999px;
}

.searchable_select_dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

.searchable_option_item {
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--text-main);
    cursor: pointer;
    border-bottom: 1px solid #F1F5F9;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    line-height: 1.35;
}

.searchable_option_item:last-child {
    border-bottom: none;
}

.searchable_option_item:hover,
.searchable_option_item.hovered {
    background: #EFF6FF;
    color: var(--primary-blue-dark);
    font-weight: 600;
}

.searchable_option_item.selected {
    background: #DBEAFE;
    color: var(--primary-blue-dark);
    font-weight: 700;
}

.searchable_option_item .highlight_match {
    background: #FEF08A;
    color: #854D0E;
    font-weight: 700;
    border-radius: 2px;
    padding: 0 1px;
}

.searchable_no_match {
    padding: 14px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
    background: #F8FAFC;
}

.form_textarea {
    resize: vertical;
    min-height: 60px;
}

.submit_action_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
    transition: all 0.2s ease;
    font-family: inherit;
}

.submit_action_btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.submit_action_btn:active {
    transform: translateY(0);
}

.submit_action_btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.status_msg {
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    min-height: 18px;
    line-height: 1.4;
}

.status_msg.success {
    color: #16A34A;
}

.status_msg.error {
    color: #DC2626;
}

.certificate_view_section {
    flex: 1 1 540px;
    max-width: 980px;
    width: 100%;
}

.certificate_preview_card {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    background-image: url('pics/cc.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 15px 35px -10px rgba(37, 99, 235, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    container-type: inline-size;
}

.banner_avatar_circle {
    position: absolute;
    left: 3.19%;
    top: 15.00%;
    width: 26.53%;
    height: 47.16%;
    border-radius: 50%;
    background: #FFFFFF;
    border: 4px solid #FFFFFF;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
    overflow: hidden;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.banner_avatar_circle:hover {
    filter: brightness(1.08);
    transform: scale(1.02);
}

.banner_avatar_circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner_name_line {
    position: absolute;
    left: 35.4%;
    top: 28.2%;
    width: auto;
    max-width: none;
    height: 4.8%;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    z-index: 2;
    user-select: none;
    white-space: nowrap;
}

.banner_unit_line {
    position: absolute;
    left: 35.4%;
    top: 36.2%;
    width: auto;
    max-width: none;
    height: 5.2%;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    z-index: 2;
    user-select: none;
    white-space: nowrap;
}

.banner_label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #FFFFFF;
    font-size: clamp(8px, 1.65cqi, 34px);
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
    flex-shrink: 0;
    line-height: 1.1;
    margin-bottom: 2px;
}

.banner_unit_line .banner_label {
    font-weight: 800;
    font-size: clamp(8px, 1.65cqi, 34px);
    flex-shrink: 0;
    margin-bottom: 2px;
}

.banner_val_name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #FFE66D;
    font-size: clamp(12px, 3.82cqi, 110px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
    line-height: 1.1;
    margin-bottom: 2px;
}

.banner_val_unit {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #FFFFFF;
    font-size: clamp(10px, 2.25cqi, 50px);
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
    margin-bottom: 2px;
}

.stats_section {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    box-shadow: 0 15px 35px -10px rgba(37, 99, 235, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.stats_header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stats_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #DBEAFE;
    border: 1px solid #BFDBFE;
    padding: 5px 14px;
    border-radius: 999px;
    color: var(--primary-blue-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.stats_badge_dot {
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary-blue);
}

.stats_heading {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 900;
    color: var(--primary-navy);
}

.stats_desc {
    font-size: clamp(12px, 1.4vw, 14px);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
}

.stats_summary_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    width: 100%;
}

.summary_box {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}

.summary_box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.summary_box.summary_lead {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-color: #FCD34D;
}

.summary_icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.summary_details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.summary_value {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary_box.summary_lead .summary_value {
    color: #B45309;
}

.summary_title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.stats_controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.search_wrapper {
    position: relative;
    flex: 1 1 240px;
    max-width: 420px;
}

.search_icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--text-muted);
    pointer-events: none;
}

.stats_search_input {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px 10px 38px;
    border-radius: 999px;
    border: 1.5px solid var(--border-color);
    background: #FFFFFF;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.stats_search_input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.sort_wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sort_icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--primary-blue);
    pointer-events: none;
}

.stats_sort_select {
    min-height: 42px;
    padding: 9px 34px 9px 30px;
    border-radius: 999px;
    border: 1.5px solid var(--border-color);
    background: #FFFFFF;
    font-size: 13px;
    font-family: inherit;
    font-weight: 700;
    color: var(--primary-navy);
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
}

.stats_sort_select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.sort_wrapper::after {
    content: "⌵";
    position: absolute;
    right: 14px;
    top: 46%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    pointer-events: none;
}

.stats_count_badge {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: var(--primary-blue-dark);
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    flex-shrink: 0;
}

.refresh_stats_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 16px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: 999px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 700;
    color: var(--primary-navy);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.refresh_stats_btn:hover {
    background: #EFF6FF;
    border-color: var(--primary-blue);
    color: var(--primary-blue-dark);
    transform: translateY(-1px);
}

.refresh_stats_btn:active {
    transform: translateY(0);
}

.refresh_stats_btn.loading .refresh_icon {
    display: inline-block;
    animation: spinRefresh 0.8s linear infinite;
}

@keyframes spinRefresh {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.stats_table_wrapper {
    width: 100%;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
}

.stats_table_wrapper::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.stats_table_wrapper::-webkit-scrollbar-track {
    background: #F1F5F9;
}

.stats_table_wrapper::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 999px;
}

.stats_table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

.stats_table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #F8FAFC;
    color: var(--primary-navy);
    font-weight: 800;
    padding: 12px 14px;
    border-bottom: 2px solid #E2E8F0;
    white-space: nowrap;
}

.stats_table tbody tr {
    border-bottom: 1px solid #F1F5F9;
    transition: background 0.15s ease;
}

.stats_table tbody tr:nth-child(even) {
    background: #FAFAFC;
}

.stats_table tbody tr:hover {
    background: #EFF6FF;
}

.stats_table tbody tr.has_downloads {
    background: #F0FDF4;
}

.stats_table tbody tr.has_downloads:hover {
    background: #DCFCE7;
}

.stats_table td {
    padding: 10px 14px;
    vertical-align: middle;
}

.col_stt {
    width: 60px;
    text-align: center;
    font-weight: 700;
    color: #64748B;
}

.col_unit {
    font-weight: 700;
    color: #1E293B;
    min-width: 240px;
}

.col_count {
    width: 130px;
    text-align: center;
}

.col_progress {
    width: 150px;
    min-width: 120px;
}

.count_pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    text-align: center;
}

.count_pill.zero {
    background: #F1F5F9;
    color: #94A3B8;
    border: 1px solid #E2E8F0;
}

.count_pill.active {
    background: #EFF6FF;
    color: var(--primary-blue-dark);
    border: 1px solid #BFDBFE;
    font-weight: 900;
}

.count_pill.leader {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FCD34D;
}

.table_progress_track {
    width: 100%;
    height: 6px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
}

.table_progress_fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #1D4ED8);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.table_empty_row {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
}

.crop_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.crop_modal_content {
    background: #FFFFFF;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.crop_modal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #E2E8F0;
}

.crop_modal_header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-navy);
}

.close_btn {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #64748B;
    cursor: pointer;
    padding: 4px;
    margin: 0;
}

.crop_container {
    width: 100%;
    height: 340px;
    max-height: 48vh;
    background: #090D16;
    position: relative;
    overflow: hidden;
}

.crop_container img {
    max-width: 100%;
    display: block;
}

.cropper-view-box,
.cropper-face {
    border-radius: 50% !important;
}

.cropper-view-box {
    outline: 3px solid #2563EB !important;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65) !important;
}

.crop_hint {
    font-size: 11.5px;
    line-height: 1.35;
    color: #475569;
    text-align: center;
    padding: 8px 14px;
    background: #F8FAFC;
    border-top: 1px solid #F1F5F9;
}

.crop_modal_footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #E2E8F0;
    background: #FFFFFF;
}

.crop_tools,
.crop_actions {
    display: flex;
    gap: 6px;
}

.btn_tool,
.btn_secondary {
    padding: 7px 11px;
    background: #F1F5F9;
    color: #334155;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.btn_tool:hover,
.btn_secondary:hover {
    background: #E2E8F0;
}

.btn_primary {
    background: var(--primary-blue);
    color: #FFFFFF;
    padding: 7px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12.5px;
    border: none;
    cursor: pointer;
}

@media (max-width: 960px) {
    .content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .input_form_card,
    .certificate_view_section {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 600px) {
    body {
        padding: 12px 8px 36px;
    }

    .main_header {
        padding: 4px 6px;
        gap: 6px;
    }

    .header_title {
        font-size: 21px;
    }

    .header_subtitle {
        font-size: 12px;
    }

    .input_form_card {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .form_input,
    .form_select,
    .form_textarea {
        font-size: 16px;
    }

    .certificate_preview_card {
        border-radius: 8px;
    }

    .stats_section {
        padding: 18px 12px;
        border-radius: 16px;
    }

    .stats_summary_grid {
        grid-template-columns: 1fr;
    }

    .stats_controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search_wrapper,
    .sort_wrapper,
    .stats_sort_select {
        max-width: 100%;
        width: 100%;
    }

    .stats_count_badge {
        text-align: center;
    }

    .stats_table th,
    .stats_table td {
        padding: 8px 10px;
        font-size: 12.5px;
    }

    .col_stt {
        width: 45px;
    }

    .col_count {
        width: 95px;
    }

    .col_progress {
        display: none;
    }

    .crop_modal_footer {
        flex-direction: column;
        align-items: stretch;
    }

    .crop_tools,
    .crop_actions {
        width: 100%;
        justify-content: space-between;
    }

    .crop_tools button,
    .crop_actions button {
        flex: 1;
        text-align: center;
    }
}