/* ============================================
   SVXCERTS PAGE - CUSTOM STYLES
   SVXLink Dashboard by SP2ONG
   ============================================ */

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes spinning {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Container */
.svxcerts-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    animation: fadeIn 0.5s ease-in;
}

/* Header */
.svxcerts-header {
    background: linear-gradient(135deg, #1d2658 0%, #3f4c84 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.6s ease-out;
}

.svxcerts-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #00aee8;
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.svxcerts-title .material-icons {
    font-size: 36px;
    color: #08dc6e;
}

/* Status Badge */
.status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    animation: slideUp 0.65s ease-out;
}

.status-badge.approved {
    background: rgba(8, 220, 110, 0.2);
    border: 2px solid #08dc6e;
    color: #08dc6e;
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid #ffc107;
    color: #ffc107;
}

.status-badge.none {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
    color: #f44336;
}

.status-badge .material-icons {
    font-size: 32px;
}

/* Certificate Details */
.cert-details {
    background: linear-gradient(135deg, #1d2658 0%, #2a3668 100%);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(8, 220, 110, 0.3);
    animation: slideUp 0.7s ease-out;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(243, 234, 211, 0.1);
}

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

.detail-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.detail-label .material-icons {
    font-size: 22px;
    color: #00aee8;
}

.detail-value {
    color: #08dc6e;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
}

/* CSR Info */
.csr-info {
    background: linear-gradient(135deg, #2a3668 0%, #3f4c84 100%);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    animation: slideUp 0.7s ease-out;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
}

.info-label {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.info-value.callsign {
    color: #08dc6e;
    font-size: 24px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
}

.info-value.email {
    color: #00aee8;
    font-family: 'Courier New', monospace;
}

/* No Certificate Message */
.no-cert-message {
    background: linear-gradient(135deg, #2a3668 0%, #3f4c84 100%);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    animation: slideUp 0.7s ease-out;
}

.no-cert-message p {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    margin: 10px 0;
}

.callsign-large {
    color: #08dc6e;
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 20px 0;
}

.hint {
    color: #00aee8;
    font-size: 14px;
    font-style: italic;
    opacity: 0.9;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-remove {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
}

.btn-remove:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 68, 68, 0.4);
}

.btn-remove .material-icons {
    font-size: 22px;
}

/* Button Removing State */
.btn-removing {
    pointer-events: none !important;
    cursor: wait !important;
    opacity: 0.8 !important;
    background: linear-gradient(135deg, #0088bb 0%, #006688 100%) !important;
}

.btn-removing .material-icons.spinning {
    animation: spinning 1s linear infinite;
}

/* Info/Warning Boxes */
.info-box,
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideUp 0.75s ease-out;
}

.info-box {
    background: rgba(33, 150, 243, 0.15);
    border-left: 4px solid #2196f3;
}

.warning-box {
    background: rgba(255, 193, 7, 0.15);
    border-left: 4px solid #ffc107;
}

.info-box .material-icons {
    font-size: 28px;
    color: #2196f3;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-box .material-icons {
    font-size: 28px;
    color: #ffc107;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p,
.warning-box p {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.warning-box strong {
    color: #ffc107;
    font-weight: 600;
}

/* Access Denied */
.access-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.access-denied img {
    max-width: 400px;
    opacity: 0.8;
    margin-bottom: 20px;
    animation: slideDown 0.6s ease-out;
}

.access-denied-text {
    color: #f3ead3;
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media screen and (max-width: 768px) {
    .svxcerts-container {
        padding: 15px;
        margin: 20px auto;
    }

    .svxcerts-header {
        padding: 25px 20px;
    }

    .svxcerts-title {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }

    .svxcerts-title .material-icons {
        font-size: 32px;
    }

    .status-badge {
        padding: 15px 25px;
        font-size: 16px;
    }

    .status-badge .material-icons {
        font-size: 28px;
    }

    .cert-details,
    .csr-info,
    .no-cert-message {
        padding: 25px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .callsign-large {
        font-size: 28px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 15px;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .svxcerts-container {
        padding: 10px;
        margin: 15px auto;
    }

    .svxcerts-header {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .svxcerts-title {
        font-size: 20px;
    }

    .svxcerts-title .material-icons {
        font-size: 28px;
    }

    .status-badge {
        padding: 12px 20px;
        font-size: 14px;
    }

    .status-badge .material-icons {
        font-size: 24px;
    }

    .cert-details,
    .csr-info,
    .no-cert-message {
        padding: 20px;
    }

    .detail-label {
        font-size: 13px;
    }

    .detail-label .material-icons {
        font-size: 20px;
    }

    .detail-value {
        font-size: 13px;
    }

    .info-value.callsign {
        font-size: 20px;
    }

    .info-value.email {
        font-size: 13px;
        word-break: break-all;
    }

    .callsign-large {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .no-cert-message p {
        font-size: 14px;
    }

    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }

    .btn .material-icons {
        font-size: 20px;
    }

    .info-box,
    .warning-box {
        padding: 15px;
        gap: 12px;
    }

    .info-box .material-icons,
    .warning-box .material-icons {
        font-size: 24px;
    }

    .info-box p,
    .warning-box p {
        font-size: 13px;
    }

    .access-denied img {
        max-width: 250px;
    }

    .access-denied-text {
        font-size: 16px;
    }
}