/* Sertifika Doğrulama — sample UI (TÜRKAK-style) */

.cv-page {
    background: #f0f0f0;
    padding: 40px 0 60px;
    min-height: 60vh;
}

.cv-card {
    background: #fff;
    border: 1px solid #d0d0d0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
}

.cv-card__header {
    background: #e73636;
    color: #fff;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 16px;
    margin: 0;
}

.cv-form {
    padding: 28px 32px 20px;
}

.cv-form .form-group {
    margin-bottom: 18px;
}

.cv-form label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.cv-form .form-control {
    border: 1px solid #c8c8c8;
    border-radius: 2px;
    height: 40px;
    font-size: 0.9rem;
    color: #444;
    background: #fff;
}

.cv-form .form-control:focus {
    border-color: #e73636;
    box-shadow: none;
}

.cv-form select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* Multi-standard field (select + add) — kept for admin chips if needed */
.cv-standards {
    border: 1px solid #c8c8c8;
    border-radius: 2px;
    background: #fff;
    min-height: 40px;
    padding: 6px 8px;
}

.cv-standards__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    min-height: 0;
}

.cv-standards__chips:empty {
    display: none;
    margin: 0;
}

.cv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f3f3;
    border: 1px solid #d5d5d5;
    border-radius: 14px;
    padding: 3px 8px 3px 10px;
    font-size: 0.8rem;
    color: #333;
    line-height: 1.3;
}

.cv-chip button {
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 2px;
}

.cv-chip button:hover {
    color: #e73636;
}

.cv-standards__hint {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #888;
    font-weight: 400;
}

/* Admin panel */
.cv-admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cv-link {
    color: #e73636;
    font-weight: 600;
    text-decoration: none;
}

.cv-link:hover {
    text-decoration: underline;
}

.cv-btn-outline {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    padding: 8px 16px;
    border-radius: 2px;
    font-weight: 600;
    cursor: pointer;
}

.cv-btn-outline:hover {
    border-color: #e73636;
    color: #e73636;
}

.cv-admin-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}

.cv-admin-add-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.cv-admin-add-row .form-control {
    flex: 1;
}

.cv-admin-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    border: 1px solid #ddd;
}

.cv-admin-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    font-size: 0.92rem;
}

.cv-admin-list li:last-child {
    border-bottom: none;
}

.cv-admin-list li:nth-child(even) {
    background: #fafafa;
}

.cv-btn-danger {
    background: #e73636;
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.cv-btn-danger:hover {
    background: #c92c2c;
}

.cv-admin-empty {
    color: #888;
    justify-content: center !important;
}

.cv-admin-hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 28px 0 20px;
}

.cv-admin-upload {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.cv-admin-error {
    color: #e73636;
    font-weight: 600;
    margin: 0 0 12px;
}

.cv-admin-flash {
    background: #e8f6ec;
    border: 1px solid #b7e0c2;
    color: #1f7a36;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.cv-ftp-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 767px) {
    .cv-ftp-box {
        grid-template-columns: 1fr;
    }
}

.cv-ftp-path {
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 12px;
    border-radius: 2px;
}

.cv-ftp-path strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.cv-ftp-path code {
    display: block;
    font-size: 0.72rem;
    word-break: break-all;
    color: #444;
    background: #eee;
    padding: 6px 8px;
    margin-bottom: 8px;
}

.cv-ftp-files {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.cv-ftp-files li {
    padding: 3px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.cv-ftp-files li:last-child {
    border-bottom: none;
}

.cv-ftp-files .muted {
    color: #888;
}

.cv-form__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}

.cv-btn-search {
    background: #2e9e4b;
    color: #fff !important;
    border: none;
    border-radius: 2px;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.cv-btn-search:hover {
    background: #268a40;
    color: #fff !important;
}

/* Results table */
.cv-results {
    overflow: hidden;
}

.cv-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.cv-table thead th {
    background: #e73636;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 12px 14px;
    border: none;
    vertical-align: middle;
}

.cv-table tbody tr.cv-row {
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    background: #fff;
    transition: background 0.12s;
}

.cv-table tbody tr.cv-row:nth-child(4n+3) {
    background: #eef6fb;
}

.cv-table tbody tr.cv-row:hover,
.cv-table tbody tr.cv-row.is-open {
    background: #e4f0f8;
}

.cv-table tbody td {
    padding: 14px;
    font-size: 0.88rem;
    color: #222;
    vertical-align: middle;
    border: none;
}

.cv-table .cv-col-num {
    width: 48px;
    text-align: center;
    font-weight: 600;
}

.cv-table .cv-col-file {
    width: 130px;
    white-space: nowrap;
}

.cv-table .cv-col-date {
    width: 130px;
    white-space: nowrap;
}

.cv-table .cv-col-status {
    width: 120px;
    text-align: center;
}

.cv-badge {
    display: inline-block;
    min-width: 72px;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.2;
}

.cv-badge--valid {
    background: #2e9e4b;
}

.cv-badge--suspended {
    background: #e6a817;
}

.cv-badge--cancelled {
    background: #e73636;
}

/* Expandable detail */
.cv-detail-row td {
    padding: 0 !important;
    background: #fff !important;
    border-bottom: 1px solid #ddd;
}

.cv-detail {
    display: none;
    padding: 18px 24px 22px 48px;
    font-size: 0.9rem;
    color: #222;
    line-height: 1.7;
}

.cv-detail.is-visible {
    display: block;
}

.cv-detail dt {
    float: left;
    clear: left;
    width: 180px;
    font-weight: 700;
    margin: 0;
}

.cv-detail dd {
    margin: 0 0 6px 180px;
}

.cv-detail dt::after {
    content: ":";
}

.cv-pdf-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cv-pdf-actions > span {
    font-weight: 700;
    margin-right: 6px;
}

.cv-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2b7bb9;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
}

.cv-btn-pdf:hover {
    background: #23689d;
    color: #fff !important;
}

.cv-btn-pdf.is-disabled {
    background: #aaa;
    pointer-events: none;
    cursor: default;
}

.cv-btn-pdf svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Footer / pagination */
.cv-results-footer {
    padding: 18px 16px 22px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.cv-pagination {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cv-pagination button {
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1rem;
    color: #444;
}

.cv-pagination button:disabled {
    opacity: 0.45;
    cursor: default;
}

.cv-pagination .cv-page-info {
    font-size: 0.9rem;
    color: #333;
}

.cv-pagination .cv-page-info input {
    width: 42px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 2px;
    height: 32px;
    margin: 0 4px;
}

.cv-results-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.cv-sample-note {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .cv-form {
        padding: 20px 16px 12px;
    }

    .cv-detail {
        padding: 14px 16px 18px;
    }

    .cv-detail dt {
        float: none;
        width: auto;
    }

    .cv-detail dd {
        margin: 0 0 12px 0;
    }

    .cv-table thead th.cv-hide-sm,
    .cv-table tbody td.cv-hide-sm {
        display: none;
    }
}
