:root {
    --svs-primary: #2c3e50;
    --svs-secondary: #3498db;
    --svs-gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --svs-success: #27ae60;
    --svs-warning: #f39c12;
    --svs-danger: #e74c3c;
    --svs-text: #34495e;
    --svs-light: #ecf0f1;
    --svs-border: #bdc3c7;
    --svs-white: #ffffff;
    --svs-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--svs-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.svs-verification-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Header */
.svs-header {
    text-align: center;
    margin-bottom: 30px;
}

.svs-header h2 {
    color: var(--svs-primary);
    font-size: 28px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--svs-secondary);
    display: inline-block;
}

/* Search Box */
.svs-search-box {
    background: var(--svs-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--svs-shadow);
    text-align: center;
    margin-bottom: 30px;
}

.svs-search-box h3 {
    color: var(--svs-text);
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.svs-search-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.svs-search-form input {
    flex: 1;
    min-width: 280px;
    padding: 12px 16px;
    border: 1px solid var(--svs-border);
    border-radius: 4px;
    font-size: 15px;
}

.svs-search-form input:focus {
    outline: none;
    border-color: var(--svs-secondary);
}

.svs-verify-btn {
    padding: 12px 30px;
    background: var(--svs-gradient);
    color: var(--svs-white);
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
}

.svs-verify-btn:hover {
    opacity: 0.9;
}

/* Report Card */
.svs-report-card {
    background: var(--svs-white);
    border-radius: 8px;
    box-shadow: var(--svs-shadow);
    overflow: hidden;
}

/* Report Header */
.svs-report-header {
    background: var(--svs-gradient);
    color: var(--svs-white);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.svs-report-header h3 {
    font-size: 20px;
    font-weight: 500;
}

.svs-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.2);
}

.svs-status.verified {
    background: var(--svs-success);
}

.svs-status.passout {
    background: var(--svs-warning);
}

/* Student Info Section */
.svs-student-info {
    padding: 30px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--svs-border);
}

.svs-photo {
    flex-shrink: 0;
}

.svs-photo img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid var(--svs-white);
    box-shadow: var(--svs-shadow);
}

.svs-details {
    flex: 1;
}

.svs-details h4 {
    color: var(--svs-primary);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.svs-details-table {
    width: 100%;
    border-collapse: collapse;
}

.svs-details-table tr {
    border-bottom: 1px solid var(--svs-light);
}

.svs-details-table th {
    text-align: left;
    padding: 12px 10px 12px 0;
    color: var(--svs-text);
    font-weight: 500;
    width: 140px;
    white-space: nowrap;
}

.svs-details-table td {
    padding: 12px 0;
    color: #2c3e50;
}

/* Courses Section */
.svs-courses {
    padding: 30px;
}

.svs-courses h4 {
    color: var(--svs-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.svs-courses-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--svs-border);
    border-radius: 4px;
    overflow: hidden;
}

.svs-courses-table th {
    background: var(--svs-light);
    color: var(--svs-text);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--svs-border);
}

.svs-courses-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--svs-light);
}

.svs-courses-table tr:last-child td {
    border-bottom: none;
}

.svs-grade {
    display: inline-block;
    padding: 4px 12px;
    background: var(--svs-light);
    border-radius: 3px;
    font-weight: 500;
    color: var(--svs-text);
}

.svs-pass {
    color: var(--svs-success);
    font-weight: 600;
}

/* Footer */
.svs-footer {
    margin-top: 40px;
    padding: 20px;
    background: var(--svs-white);
    border-radius: 8px;
    box-shadow: var(--svs-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.footer-logo {
    max-height: 50px;
    width: auto;
}

.footer-info {
    color: var(--svs-text);
}

.footer-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-address {
    font-size: 13px;
    opacity: 0.8;
}

/* Error Message */
.svs-error {
    background: var(--svs-danger);
    color: var(--svs-white);
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}

/* Loading */
#svs-loading {
    margin-top: 15px;
    color: var(--svs-text);
}

/* Mobile Responsive - Keeping same layout as desktop */
@media (max-width: 768px) {
    .svs-header h2 {
        font-size: 22px;
    }
    
    .svs-search-box {
        padding: 30px 20px;
    }
    
    .svs-search-form {
        flex-direction: column;
    }
    
    .svs-search-form input,
    .svs-verify-btn {
        width: 100%;
    }
    
    /* Keep student info layout same as desktop */
    .svs-student-info {
        flex-direction: row;
        align-items: flex-start;
        padding: 20px;
        gap: 20px;
    }
    
    .svs-photo {
        flex-shrink: 0;
    }
    
    .svs-photo img {
        width: 120px;
        height: 120px;
    }
    
    .svs-details {
        flex: 1;
    }
    
    .svs-details h4 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    /* Keep table layout exactly as desktop */
    .svs-details-table {
        width: 100%;
        display: table;
    }
    
    .svs-details-table tr {
        display: table-row;
        border-bottom: 1px solid var(--svs-light);
    }
    
    .svs-details-table th {
        display: table-cell;
        padding: 10px 10px 10px 0;
        width: 140px;
        white-space: nowrap;
    }
    
    .svs-details-table td {
        display: table-cell;
        padding: 10px 0;
    }
    
    /* Keep courses table same */
    .svs-courses {
        padding: 20px;
        overflow-x: auto;
    }
    
    .svs-courses-table {
        min-width: 100%;
    }
    
    .svs-courses-table th,
    .svs-courses-table td {
        padding: 10px;
        white-space: nowrap;
    }
    
    .svs-report-header {
        flex-direction: row;
        text-align: left;
        padding: 15px 20px;
    }
    
    .svs-report-header h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .svs-student-info {
        flex-direction: row;
        gap: 15px;
        padding: 15px;
    }
    
    .svs-photo img {
        width: 100px;
        height: 100px;
    }
    
    .svs-details h4 {
        font-size: 18px;
    }
    
    .svs-details-table th {
        width: 120px;
        font-size: 14px;
        padding: 8px 8px 8px 0;
    }
    
    .svs-details-table td {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .svs-courses-table {
        font-size: 13px;
    }
    
    .svs-courses-table th,
    .svs-courses-table td {
        padding: 8px 10px;
    }
    
    .svs-report-header {
        padding: 12px 15px;
    }
    
    .svs-report-header h3 {
        font-size: 16px;
    }
    
    .svs-status {
        font-size: 12px;
        padding: 4px 12px;
    }
}

/* Ensure tables don't break on very small screens */
@media (max-width: 360px) {
    .svs-details-table th {
        width: 100px;
        font-size: 13px;
    }
    
    .svs-details-table td {
        font-size: 13px;
    }
    
    .svs-photo img {
        width: 80px;
        height: 80px;
    }
}