/* Flepz OAuth Plugin Styles */

.flepz-oauth-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    margin: 10px 0;
}

.flepz-oauth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.flepz-oauth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.flepz-oauth-status {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
}

.flepz-oauth-status.connected {
    background: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.flepz-oauth-status.pending {
    background: #fef5e7;
    color: #d69e2e;
    border: 1px solid #f6e05e;
}

.flepz-oauth-status.error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.flepz-oauth-widget {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.flepz-oauth-widget h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 18px;
}

.flepz-oauth-widget p {
    color: #718096;
    margin-bottom: 15px;
    line-height: 1.5;
}

.flepz-oauth-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

/* Admin styles */
.flepz-admin-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.flepz-admin-main {
    flex: 2;
}

.flepz-admin-sidebar {
    flex: 1;
}

.flepz-info-box {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.flepz-info-box h3 {
    margin-top: 0;
    color: #23282d;
}

.flepz-info-box code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    word-break: break-all;
    display: block;
    margin: 5px 0;
}

/* WooCommerce integration */
.woocommerce .flepz-oauth-section {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.woocommerce .flepz-oauth-section h3 {
    margin-top: 0;
    color: #2d3748;
}

/* My Account page integration */
.woocommerce-account .flepz-oauth-section {
    margin-bottom: 30px;
}

/* Checkout integration */
.woocommerce-checkout .flepz-oauth-section {
    margin: 20px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .flepz-admin-container {
        flex-direction: column;
    }
    
    .flepz-oauth-button {
        width: 100%;
        text-align: center;
    }
    
    .flepz-oauth-widget {
        margin: 10px 0;
        padding: 15px;
    }
}

/* Loading animation */
.flepz-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: flepz-spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Success/Error messages */
.flepz-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
}

.flepz-message.success {
    background: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.flepz-message.error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.flepz-message.info {
    background: #bee3f8;
    color: #2b6cb0;
    border: 1px solid #90cdf4;
}
