/* Certificate Verification System Admin Styles */
:root {
    --tcvs-primary: #2271b1;
    --tcvs-primary-hover: #135e96;
    --tcvs-danger: #d63638;
    --tcvs-text: #3c434a;
    --tcvs-bg-light: #f0f0f1;
    --tcvs-white: #ffffff;
    --tcvs-border: #c3c4c7;
}

.tcvs-admin-wrapper {
    margin: 20px 20px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
}

.tcvs-header-container, .tcvs-header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: var(--tcvs-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e2e4e7;
}
.tcvs-title h1, .tcvs-header-title span {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1e1e1e;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tcvs-btn-add {
    background: var(--tcvs-primary);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}
.tcvs-btn-add:hover {
    background: var(--tcvs-primary-hover);
    color: white;
}

/* Stats Cards */
.tcvs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.tcvs-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e4e7;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.tcvs-stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--tcvs-primary);
}
.tcvs-stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tcvs-stat-info .count {
    font-size: 32px;
    font-weight: 700;
    color: #1e1e1e;
}
.tcvs-stat-icon {
    font-size: 40px;
    color: #e2e4e7;
}

/* Table Design */
.tcvs-table-card {
    background: var(--tcvs-white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e2e4e7;
    overflow: hidden;
}
.tcvs-table-header-actions {
    padding: 15px 20px;
    background: #fcfcfc;
    border-bottom: 1px solid #f0f0f1;
    display: flex;
    align-items: center;
    gap: 15px;
}
.tcvs-modern-table {
    width: 100%;
    border-collapse: collapse;
}
.tcvs-modern-table thead th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 2px solid #e2e8f0;
}
.tcvs-modern-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}
.tcvs-modern-table tbody tr:hover {
    background-color: #f8fafc;
}
.tcvs-modern-table td {
    padding: 12px 15px;
    vertical-align: middle;
    color: #334155;
}

.tcvs-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.tcvs-avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.tcvs-reg-no {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #334155;
}

.tcvs-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.tcvs-badge-batch {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.tcvs-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #64748b;
}

.tcvs-action-btns {
    display: flex;
    gap: 8px;
}
.tcvs-btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.tcvs-btn-edit {
    background: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
}
.tcvs-btn-edit:hover {
    background: #2563eb;
    color: white;
}
.tcvs-btn-delete {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fee2e2;
}
.tcvs-btn-delete:hover {
    background: #dc2626;
    color: white;
}

.tcvs-pagination {
    padding: 20px;
    border-top: 1px solid #e2e4e7;
    display: flex;
    justify-content: flex-end;
}
.tcvs-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    margin-left: 5px;
    border-radius: 5px;
    background: white;
    border: 1px solid #e2e4e7;
    color: #646970;
    text-decoration: none;
    font-size: 13px;
}
.tcvs-pagination .page-numbers.current {
    background: var(--tcvs-primary);
    color: white;
    border-color: var(--tcvs-primary);
}

.tcvs-footer-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}
.tcvs-footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e2e4e7;
    transition: transform 0.2s;
}
.tcvs-footer-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.tcvs-form-container { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.tcvs-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid #e2e4e7; padding: 25px; margin-bottom: 20px; }
.tcvs-card-header { border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }
.tcvs-card-header h3 { margin: 0; font-size: 18px; color: #1a3c5e; font-weight: 600; }

.tcvs-form-group { margin-bottom: 20px; }
.tcvs-form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: #444; }
.tcvs-form-group input[type="text"], 
.tcvs-form-group input[type="date"],
.tcvs-form-group input[type="email"] { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; transition: border-color 0.3s; box-sizing: border-box; }
.tcvs-form-group input:focus { border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; outline: none; }

.tcvs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.tcvs-image-upload-box { border: 2px dashed #ccc; padding: 20px; text-align: center; border-radius: 8px; background: #fafafa; transition: all 0.3s; }
.tcvs-image-upload-box:hover { border-color: #2271b1; background: #f0f7fc; }
.tcvs-image-preview img { max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); margin-bottom: 10px; }
.tcvs-placeholder-icon { font-size: 48px; color: #ccc; display: block; margin-bottom: 10px; }

.tcvs-submit-card { background: #f9f9f9; border-top: 1px solid #ddd; padding: 15px; border-radius: 0 0 8px 8px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }

.button-tcvs-primary { background: #1a3c5e !important; color: #fff !important; border: none !important; padding: 10px 25px !important; font-size: 15px !important; border-radius: 5px !important; font-weight: 500 !important; transition: background 0.3s !important; cursor: pointer; }
.button-tcvs-primary:hover { background: #132b45 !important; }

@media (max-width: 768px) {
    .tcvs-form-container { grid-template-columns: 1fr; }
    .tcvs-form-row { grid-template-columns: 1fr; }
}

.tcvs-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    align-items: start;
}

.tcvs-col-main { min-width: 0; }
.tcvs-col-side { position: sticky; top: 20px; }

.tcvs-content-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tcvs-content-card .tcvs-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f1;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
}

.tcvs-content-card .tcvs-card-header h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #1d2327;
    text-transform: uppercase;
}

.tcvs-content-card .tcvs-card-body { padding: 20px; }

.tcvs-image-upload-area { text-align: center; }

.tcvs-image-preview-box {
    background: #f6f7f7;
    border: 2px dashed #dcdcde;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tcvs-image-preview-box img { max-width: 100%; height: auto; display: block; }
.tcvs-full-width-btn { width: 100%; text-align: center; justify-content: center; }

@media (max-width: 782px) {
    .tcvs-form-grid { grid-template-columns: 1fr; }
}