/* SASSA Status Check Plugin Styles */

/* Button Wrapper */
.sassa-status-wrapper {
    text-align: center;
    margin: 20px 0;
}

/* Main Button */
.sassa-status-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    background-color: #FBC02D;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sassa-status-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #F9A825;
}

.sassa-status-button:active {
    transform: translateY(0);
}

/* Hand Emoji Animation */
.hand-emoji {
    font-size: 24px;
    animation: pointAnimation 1s infinite;
}

@keyframes pointAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Modal Overlay */
.sassa-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #666;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #000;
}

/* Browser Frame */
.modal-browser-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* Address Bar */
.modal-address-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
    border-bottom: 1px solid #ddd;
}

.lock-icon {
    width: 20px;
    height: 20px;
    color: #4CAF50;
    flex-shrink: 0;
}

.url-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Iframe Container */
.iframe-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background: #fff;
}

/* Loader */
.modal-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.modal-loader.hidden {
    display: none;
}

.spinner-animation {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #FBC02D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Iframe */
#status-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .sassa-status-button {
        font-size: 16px;
        padding: 12px 24px;
    }
    
    .iframe-container {
        height: 80vh;
        min-height: 400px;
    }
    
    .modal-address-bar {
        padding: 10px 15px;
    }
    
    .url-text {
        font-size: 12px;
    }
    
    .close-button {
        font-size: 28px;
    }
}

@media screen and (max-width: 480px) {
    .sassa-status-button {
        font-size: 14px;
        padding: 10px 20px;
        gap: 8px;
    }
    
    .hand-emoji {
        font-size: 20px;
    }
    
    .iframe-container {
        height: 75vh;
        min-height: 350px;
    }
    
    .modal-address-bar {
        padding: 8px 12px;
    }
    
    .url-text {
        font-size: 11px;
    }
}