/* Student Corner Styles */

.student-corner-container {
    padding: 40px 20px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 50vh;
    background-color: #f8f9fa;
}

.student-corner-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 500px;
    /* Reduced width for better centering */
}

.student-corner-title {
    color: #333;
    margin-bottom: 30px;
    padding-left: 0;
    text-align: center;
    /* Center align title */
    border-left: none;
    /* Remove left border */
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

/* Form Styles */
.verification-form {
    background: #fff;
    padding: 10px 0 30px;
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    gap: 20px;
    align-items: center;
    /* Center items */
    width: 100%;
}

.form-group {
    width: 100%;
    max-width: 100%;
    /* Full width within container */
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-align: left;
    /* Keep labels left aligned for readability */
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 6px;
    background-color: #f0f2f5;
    /* Light gray background */
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    background-color: #e4e6eb;
    outline: none;
}

.btn-verify {
    background: #28a745;
    /* Green button */
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: background 0.3s ease;
    height: auto;
    align-self: center;
    /* Center button */
    width: 100%;
    /* Full width button looks better in centered form */
}

.btn-verify:hover {
    background: #218838;
}

/* Verification Result Card */
.verification-result {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    z-index: 1;
    /* Stacking context */
}

.verified-header,
.student-details-container,
.action-container {
    position: relative;
    z-index: 10;
    /* Far above watermark */
}

.verified-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.verified-badge {
    color: #28a745;
    font-size: 22px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 20px;
    border-left: 4px solid #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.student-details-container {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.details-table-wrapper {
    flex: 1;
    min-width: 300px;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.details-table tr:last-child td {
    border-bottom: none;
}

.details-table .label-cell {
    font-weight: 600;
    background: #f9f9f9;
    width: 160px;
    border-right: 1px solid #e0e0e0;
    color: #555;
}

.photo-wrapper {
    width: 200px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border-left: 1px solid #e0e0e0;
    background: #fff;
}

.student-photo {
    width: 130px;
    height: 150px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Watermark */
.watermark {
    position: absolute;
    top: 55%;
    left: 55%;
    transform: translate(-40%, -60%);
    z-index: 100;
    width: 50%;
    height: 50%;
    user-select: none;
}

.watermark img {
    max-width: 80%;
    /* Ensure full circle fits horizontally */
    max-height: 80%;
    /* Ensure full circle fits vertically */
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.25;
    filter: grayscale(40%);
}

.error-message {
    background: #fff5f5;
    color: #c53030;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #c53030;
    margin-top: 20px;
    font-weight: 500;
}

.maintenance-message {
    background: #ebf8ff;
    color: #2b6cb0;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #bee3f8;
    text-align: center;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 650px) {
    .student-details-container {
        flex-direction: column-reverse;
    }

    .photo-wrapper {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 20px 0;
    }

    .details-table .label-cell {
        width: 120px;
    }

    .form-group {
        min-width: 100%;
    }

    .btn-verify {
        width: 100%;
    }

    .watermark img {
        max-width: 90%;
        max-height: 900%;
        opacity: 0.45;
        transform: translate(0%, 90%)
    }
}

/* Premium Certificate Portal Card */
.certificate-portal-card {
    background: #fff;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px;
    overflow: hidden;
    margin-top: 20px;
}

.portal-header {
    background: linear-gradient(135deg, #1a2a6c, #2a4858);
    padding: 40px 30px;
    text-align: center;
    color: #fff;
}

.portal-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: #c5a059;
    /* Gold */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.portal-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.portal-subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
}

.certificate-portal-card .verification-form {
    padding: 40px;
    gap: 25px;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a2a6c;
    font-size: 18px;
    opacity: 0.7;
}

.input-with-icon .form-control {
    padding-left: 50px !important;
    height: 55px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    font-weight: 500;
}

.input-with-icon .form-control:focus {
    border-color: #1a2a6c;
    box-shadow: 0 0 0 4px rgba(26, 42, 108, 0.1);
}

.form-actions {
    width: 100%;
    margin-top: 10px;
}

.btn-portal-submit {
    width: 100%;
    background: linear-gradient(to right, #1a2a6c, #c5a059);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(26, 42, 108, 0.3);
}

.btn-portal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 42, 108, 0.4);
    filter: brightness(1.1);
}

.portal-error {
    background: #fff5f5;
    color: #e53e3e;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #feb2b2;
    margin-top: 20px;
    width: 100%;
}

.portal-footer-note {
    background: #f8fafc;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.portal-footer-note i {
    color: #1a2a6c;
}

/* Responsive fixes for Portal */
@media (max-width: 600px) {
    .certificate-portal-card {
        margin: 10px;
    }

    .portal-header {
        padding: 30px 20px;
    }

    .certificate-portal-card .verification-form {
        padding: 25px 20px;
    }
}