/* BEC Result System - Complete CSS */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Nice Select Dropdowns */
.bec-row select {
    display: none;
}

.bec-row .nice-select {
    -webkit-tap-highlight-color: transparent;
    background-color: #fff;
    border: solid 1px #e8e8e8;
    box-sizing: border-box;
    clear: both;
    cursor: pointer;
    display: block;
    float: left;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    height: 45px;
    line-height: 43px;
    outline: none;
    padding-left: 18px;
    padding-right: 30px;
    position: relative;
    text-align: left !important;
    transition: all 0.2s ease-in-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    white-space: nowrap;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 5px;
}

.bec-row .nice-select:hover {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.bec-row .nice-select:active,
.bec-row .nice-select.open,
.bec-row .nice-select:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.15);
}

.bec-row .nice-select:after {
    border-bottom: 2px solid #999;
    border-right: 2px solid #999;
    content: '';
    display: block;
    height: 6px;
    margin-top: -4px;
    pointer-events: none;
    position: absolute;
    right: 15px;
    top: 50%;
    -webkit-transform-origin: 66% 66%;
    transform-origin: 66% 66%;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    transition: all 0.15s ease-in-out;
    width: 6px;
}

.bec-row .nice-select.open:after {
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.bec-row .nice-select .list {
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    margin-top: 4px;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
    -webkit-transform: scale(0.75) translateY(-21px);
    transform: scale(0.75) translateY(-21px);
    transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
    z-index: 9999;
    width: 100%;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
}

.bec-row .nice-select .option {
    cursor: pointer;
    font-weight: 400;
    line-height: 42px;
    list-style: none;
    min-height: 42px;
    outline: none;
    padding: 0 18px;
    text-align: left;
    transition: all 0.2s;
}

.bec-row .nice-select .option:hover,
.bec-row .nice-select .option.focus,
.bec-row .nice-select .option.selected.focus {
    background-color: #007cba !important;
    color: white !important;
}

/* Search Form */
#bec-search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
}

#bec-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#bec-search-input {
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

#bec-search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 4px rgba(0, 124, 186, 0.1);
    transform: translateY(-2px);
}

#bec-search-form button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#bec-search-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 124, 186, 0.4);
}

#bec-search-form button:active {
    transform: translateY(-1px);
}

/* Preloader */
.bec-preloader {
    text-align: center;
    padding: 40px;
    color: #007cba;
}

.bec-preloader .icomoon-rotate {
    display: inline-block;
    animation: spin 1s linear infinite;
    font-size: 24px;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Container */
#bec-results {
    margin-top: 30px;
}

/* Marksheet Styles */
.bec-marksheet {
    background: white;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.bec-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #007cba 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.bec-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.bec-header h3 {
    margin: 0;
    font-size: 18px;
    opacity: 0.95;
}

.bec-student-info {
    padding: 30px;
    background: #f8f9fa;
}

.bec-student-info table {
    width: 100%;
    border-collapse: collapse;
}

.bec-student-info td {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.bec-student-info td:first-child {
    font-weight: 600;
    color: #495057;
    width: 35%;
}

.bec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.bec-table th {
    background: linear-gradient(135deg, #1e3c72 0%, #007cba 100%);
    color: white;
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

.bec-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s ease;
}

.bec-table tr:hover {
    background: #f8f9fa;
}

/* Grade Colors */
.bec-grade-a, .grade-a { background: #d4edda !important; color: #155724; }
.bec-grade-b, .grade-b { background: #fff3cd !important; color: #856404; }
.bec-grade-c, .grade-c { background: #f8d7da !important; color: #721c24; }
.bec-grade-d, .grade-d { background: #fff0f5 !important; color: #8b008b; }
.bec-grade-f, .grade-f { background: #ffebee !important; color: #c62828; }

.bec-overall {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #d4edda 0%, #c8e6c9 100%);
    margin: 0;
    border-radius: 0 0 15px 15px;
}

/* Responsive */
@media (max-width: 768px) {
    #bec-search-container {
        margin: 20px;
        padding: 20px;
    }
    
    .bec-marksheet {
        margin: 10px;
    }
    
    .bec-table {
        font-size: 14px;
    }
    
    .bec-table th,
    .bec-table td {
        padding: 12px 10px;
    }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 18px;
}

.no-results::before {
    content: "🔍";
    display: block;
    font-size: 48px;
    margin-bottom: 20px;
}
