/* Frontend Styles for GCheck Certificate */

.gc-validation-wrapper {
    max-width: 600px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.gc-validation-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    border: 1px solid #eef2f7;
}

.gc-validation-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
}

/* Form Elements */
.gc-input-group {
    margin-bottom: 20px;
    position: relative;
    text-align: left;
}

.gc-input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.gc-input-field {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.gc-input-field:focus {
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.gc-submit-btn {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.gc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4);
}

.gc-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading Spinner */
.gc-loader {
    display: none;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: gc-spin 1s linear infinite;
}

@keyframes gc-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Results Area */
.gc-result-container {
    margin-top: 30px;
    text-align: left;
    display: none;
    /* Hidden by default */
}

.gc-success-card {
    background: #f8fbff;
    border: 1px solid #cff4fc;
    border-radius: 8px;
    padding: 20px;
    border-left: 5px solid #0dcaf0;
    animation: gc-fade-in 0.5s ease-out;
}

.gc-error-msg {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    animation: gc-shake 0.5s;
    display: none;
    margin-top: 20px;
}

/* Certificate Details */
.gc-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.gc-detail-row:last-child {
    border-bottom: none;
}

.gc-detail-label {
    font-weight: 600;
    color: #6c757d;
}

.gc-detail-value {
    font-weight: bold;
    color: #2c3e50;
    text-align: right;
}

.gc-status-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #d1e7dd;
    color: #0f5132;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Animations */
@keyframes gc-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gc-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Responsive */
@media screen and (max-width: 480px) {
    .gc-validation-card {
        padding: 20px;
    }

    .gc-detail-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .gc-detail-value {
        text-align: left;
        margin-top: 5px;
    }
}