/* Subscription Manager Styles */

.sm-form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sm-form-container h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.sm-form-group {
    margin-bottom: 20px;
}

.sm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.sm-form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.sm-form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.sm-form-group input.sm-error {
    border-color: #dc3232;
}

.sm-error-message {
    display: block;
    color: #dc3232;
    font-size: 14px;
    margin-top: 5px;
}

.sm-subscription-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.sm-subscription-info p {
    margin: 0;
    font-weight: 600;
    color: #007cba;
}

.sm-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.sm-btn-primary {
    background: #007cba;
    color: white;
    width: 100%;
}

.sm-btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.sm-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.sm-message {
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 500;
}

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

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

.sm-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Content Restriction Styles */
.sm-restriction-notice {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sm-restriction-notice h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.sm-restriction-notice p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.sm-login-required {
    border-left: 4px solid #007cba;
}

.sm-subscription-expired {
    border-left: 4px solid #dc3232;
}

/* Responsive Design */
@media (max-width: 480px) {
    .sm-form-container {
        margin: 20px;
        padding: 20px;
    }
    
    .sm-restriction-notice {
        margin: 20px;
        padding: 20px;
    }
}

/* Loading States */
.sm-loading {
    opacity: 0.6;
    pointer-events: none;
}

.sm-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Status Indicators */
.sm-status-active {
    color: #28a745;
    font-weight: 600;
}

.sm-status-expired {
    color: #dc3232;
    font-weight: 600;
}

/* Form Animations */
.sm-form-container {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Hover Effects */
.sm-form-group input:hover {
    border-color: #007cba;
}

.sm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Focus States */
.sm-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.3);
}