/* General Admin Styling */
.post-type-student_certificate .wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* Student Details List Page */
.post-type-student_certificate .wp-list-table {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    margin-top: 20px;
}
.post-type-student_certificate .wp-list-table th {
    background: #f1f6ff;
    color: #0073aa;
    font-weight: 600;
    padding: 12px;
    text-align: left;
}
.post-type-student_certificate .wp-list-table td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #e5e5e5;
}
.post-type-student_certificate .wp-list-table tr:hover {
    background: #f9f9f9;
}

/* Add/Edit Student Page */
.post-type-student_certificate .cvs-student-table {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    border-collapse: collapse;
}
.post-type-student_certificate .cvs-student-table th {
    width: 200px;
    padding: 15px;
    background: #f1f6ff;
    color: #0073aa;
    font-weight: 600;
    vertical-align: middle;
    border-bottom: 1px solid #e5e5e5;
}
.post-type-student_certificate .cvs-student-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
}

/* Base Input Styles */
.cvs-input, .cvs-select, .cvs-date-picker {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #fdfdfd;
}
.cvs-input:focus, .cvs-select:focus, .cvs-date-picker:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
    background-color: #fff;
}

/* Admin Input Widths */
.post-type-student_certificate .cvs-input,
.post-type-student_certificate .cvs-select {
    max-width: 400px;
}
.post-type-student_certificate .cvs-date-picker {
    max-width: 200px;
}


/* Bulk Upload Page */
.cvs-bulk-upload-wrap {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 600px;
}
.cvs-bulk-title {
    color: #0073aa;
    font-size: 28px;
    margin-bottom: 10px;
}
.cvs-bulk-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}
.cvs-sample-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.cvs-sample-link {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}
.cvs-sample-link:hover {
    background: #218838;
}
.cvs-file-input {
    padding: 10px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    background: #fff;
}
.cvs-submit-btn {
    background: #0073aa;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cvs-submit-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
}
.cvs-error-notice, .cvs-success-notice {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.cvs-error-notice {
    background: #f8d7da;
    border-left: 5px solid #dc3545;
}
.cvs-success-notice {
    background: #d4edda;
    border-left: 5px solid #28a745;
}

/* Settings Page */
.cvs-settings-wrap {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}
.cvs-settings-wrap h2 {
    color: #0073aa;
    font-size: 20px;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cvs-bulk-upload-wrap {
        padding: 20px;
        margin: 10px;
    }
    .cvs-student-table th {
        width: 100%;
        display: block;
        padding: 10px;
    }
    .cvs-student-table td {
        display: block;
        padding: 10px;
    }
    .cvs-input, .cvs-select, .cvs-date-picker {
        max-width: 100%;
    }
    .cvs-sample-container {
        flex-direction: column;
    }
}

/* === NEW STYLES START HERE === */

/* Frontend Verification Form Styles */
.cvs-verification-form-wrapper .cvs-input,
.cvs-verification-form-wrapper .cvs-date-picker {
    max-width: 100%; /* Ensure inputs take full width of container */
    margin-bottom: 15px; /* Add space between inputs */
}

/* Advanced jQuery UI Datepicker Style */
.ui-datepicker {
    width: 100%;
    max-width: 320px;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: none; /* Hide by default */
    z-index: 100 !important;
}
.ui-datepicker-header {
    background-color: transparent;
    border: none;
    padding: 0 0 15px 0;
    position: relative;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
}
.ui-datepicker-prev, .ui-datepicker-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: #f1f5f9;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    color: #334155;
    transition: background-color 0.3s ease;
}
.ui-datepicker-prev:hover, .ui-datepicker-next:hover {
    background: #e2e8f0;
}
.ui-datepicker-prev {
    left: 0;
}
.ui-datepicker-next {
    right: 0;
}
.ui-datepicker-prev span, .ui-datepicker-next span {
    display: none; /* Hide default text */
}
.ui-datepicker-prev::before, .ui-datepicker-next::before {
    font-family: "Dashicons";
    font-size: 20px;
    line-height: 36px;
    text-indent: 0;
    display: block;
}
.ui-datepicker-prev::before {
    content: "\f341";
}
.ui-datepicker-next::before {
    content: "\f345";
}
.ui-datepicker-title {
    font-weight: 600;
    font-size: 16px;
    color: #1e293b;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.ui-datepicker-title select {
    font-size: 16px;
    font-weight: 600;
    padding: 5px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}
.ui-datepicker-calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.ui-datepicker-calendar th {
    padding-bottom: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}
.ui-datepicker-calendar td {
    padding: 2px;
}
.ui-datepicker-calendar td a, .ui-datepicker-calendar td span {
    display: block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    text-decoration: none;
    color: #334155;
    background: #fff;
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
    font-size: 14px;
    border: 1px solid transparent;
}
.ui-datepicker-calendar td a:hover {
    background: #f1f5f9;
    transform: scale(1.05);
}
.ui-datepicker-highlight a {
    background-color: #e0f2fe;
    color: #0c4a6e;
}
.ui-datepicker-current-day a, .ui-datepicker-current-day a:hover {
    background-color: #0073aa;
    color: #fff;
    font-weight: bold;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.3);
}
.ui-datepicker-unselectable .ui-state-default {
    color: #94a3b8;
    background: transparent;
}

