/**
 * AB2BC SSO Admin Styles
 */

.m2c-sso-wrap {
    max-width: 1200px;
}

.m2c-sso-wrap h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.m2c-sso-wrap h1 .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.m2c-sso-container {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
}

/* Status Badges */
.m2c-sso-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
}

.m2c-sso-status-badge.connected {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}

.m2c-sso-status-badge.disconnected {
    background: #dc3545;
    color: #fff;
}

.m2c-sso-status-badge .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Info Cards */
.m2c-sso-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.m2c-sso-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.m2c-sso-card h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: #6c757d;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.m2c-sso-card code {
    display: block;
    font-size: 14px;
    word-break: break-all;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.m2c-sso-card .wallet-address {
    font-size: 11px;
}

/* Actions */
.m2c-sso-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.m2c-sso-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* QR Code Section */
.m2c-sso-disconnected .m2c-sso-intro {
    text-align: center;
    margin-bottom: 30px;
}

.m2c-sso-disconnected .m2c-sso-intro h2 {
    color: #1e3a5f;
    margin-bottom: 10px;
}

.m2c-sso-qr-container {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 30px;
}

.m2c-sso-qr-wrapper {
    display: inline-block;
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.m2c-sso-qr-wrapper img {
    display: block;
    width: 250px;
    height: 250px;
}

.m2c-sso-qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.m2c-sso-qr-overlay .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #fff;
}

.m2c-sso-qr-instructions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
}

.m2c-sso-qr-instructions h4 {
    color: #f39c12;
    margin: 0 0 15px 0;
}

.m2c-sso-qr-instructions ol {
    color: #e0e0e0;
    margin: 0;
    padding-left: 25px;
}

.m2c-sso-qr-instructions li {
    margin-bottom: 8px;
}

/* Status */
.m2c-sso-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.m2c-sso-status .spinner {
    float: none;
    margin: 0;
}

.m2c-sso-status .status-text {
    font-size: 16px;
}

.m2c-sso-status.scanned .status-text {
    color: #f39c12;
}

.m2c-sso-status.authenticated .status-text {
    color: #28a745;
}

/* Timer */
.m2c-sso-timer {
    font-size: 14px;
    color: #aaa;
}

.m2c-sso-timer #m2c-sso-countdown {
    font-weight: bold;
    font-family: monospace;
}

.m2c-sso-timer.warning #m2c-sso-countdown {
    color: #f39c12;
}

.m2c-sso-timer.expired #m2c-sso-countdown {
    color: #dc3545;
}

/* Connect Button */
.m2c-sso-connect-container {
    text-align: center;
    padding: 40px;
}

.m2c-sso-connect-container .button-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    padding: 15px 40px;
    height: auto;
    background: linear-gradient(135deg, #e53935, #ff5722);
    border: none;
    border-radius: 30px;
    color: #fff;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
    transition: all 0.3s ease;
}

.m2c-sso-connect-container .button-hero:hover {
    background: linear-gradient(135deg, #c62828, #e64a19);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.5);
    transform: translateY(-2px);
}

.m2c-sso-connect-container .button-hero .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Messages */
.m2c-sso-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.m2c-sso-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.m2c-sso-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.m2c-sso-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* How It Works */
.m2c-sso-how-it-works {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.m2c-sso-how-it-works h3 {
    text-align: center;
    color: #1e3a5f;
    margin-bottom: 30px;
}

.m2c-sso-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.m2c-sso-steps .step {
    text-align: center;
    padding: 20px;
    position: relative;
}

.m2c-sso-steps .step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #e53935, #ff5722);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.m2c-sso-steps .step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 25px auto 15px;
    background: #f8f9fa;
    border-radius: 50%;
    font-size: 28px;
    color: #1e3a5f;
}

.m2c-sso-steps .step h4 {
    margin: 0 0 10px 0;
    color: #1e3a5f;
}

.m2c-sso-steps .step p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .m2c-sso-steps {
        grid-template-columns: 1fr;
    }
    
    .m2c-sso-info-cards {
        grid-template-columns: 1fr;
    }
}
