/**
 * SPMB Settings Fetcher - Frontend Styles
 */

.spmb-settings-container {
    margin: 20px 0;
}

.spmb-settings-box {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spmb-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.spmb-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spmb-spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spmb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spmb-error {
    background-color: #fee;
    border-left: 4px solid #e74c3c;
    padding: 15px 20px;
    text-align: center;
}

.spmb-error p {
    margin: 0 0 10px 0;
    color: #c0392b;
}

.spmb-retry-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.spmb-retry-btn:hover {
    background-color: #c0392b;
}

/* Status Boxes */
.spmb-status {
    padding: 25px 30px;
    text-align: center;
}

.spmb-status h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
}

.spmb-status p {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
}

/* Active State */
.spmb-active {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.spmb-active h3 {
    color: white;
}

.spmb-active p {
    color: rgba(255, 255, 255, 0.9);
}

.spmb-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background-color: #fff;
    color: #27ae60;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.spmb-button:hover {
    background-color: #f8f8f8;
    color: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Inactive State */
.spmb-inactive {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.spmb-inactive h3 {
    color: white;
}

.spmb-inactive p {
    color: rgba(255, 255, 255, 0.9);
}

/* Disabled/Maintenance State */
.spmb-disabled {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.spmb-disabled h3 {
    color: white;
    margin: 0;
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .spmb-status {
        padding: 20px;
    }

    .spmb-status h3 {
        font-size: 20px;
    }

    .spmb-status p {
        font-size: 14px;
    }

    .spmb-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}
