/**
 * MailGenius - Gemeinsame Formular-Styles
 * Verwendet von ui.php und user-profile.php
 */

/* Container */
.mailgenius-profile-container,
.mg-accounts {
    font-size: 0.7rem;
}

/* Boxen */
.mg-box {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mg-box h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Formular-Felder */
.mg-field input,
.mg-field select,
.mg-billing-form .form-control {
    width: 100%;
    font-size: 0.7rem;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.mg-field input:focus,
.mg-field select:focus,
.mg-billing-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.mg-field label,
.mg-billing-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 0.7rem;
}

.mg-field label strong {
    font-weight: 700;
    color: #333;
}

/* Form Rows */
.mg-billing-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.mg-billing-form .form-group {
    flex: 1;
}

.mg-billing-form .form-group.full-width {
    width: 100%;
}

.mg-billing-form .form-group.half-width {
    flex: 0 0 calc(50% - 10px);
}

/* Buttons */
.mg-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.mg-btn-primary,
.mg-save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mg-btn-primary:hover,
.mg-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.mg-btn-danger {
    background: #dc3545;
    color: #fff;
}

.mg-btn-danger:hover {
    background: #c82333;
}

.mg-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.mg-btn-secondary:hover {
    background: #5a6268;
}

.mg-add-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.mg-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.mg-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.icon-btn {
    font-size: 0.7rem;
    padding: 8px 16px;
    border: 1px solid #d32f2f;
    background: #fff;
    color: #d32f2f;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: #ffebee;
}

.icon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Alerts & Meldungen */
.mg-alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.7rem;
}

.mg-success {
    background: #e6ffed;
    border: 1px solid #b7ebc6;
    color: #0a8f5a;
}

.mg-error {
    background: #ffecec;
    border: 1px solid #ffb3b3;
    color: #d32f2f;
}

.mailgenius-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.7rem;
}

/* Subtext */
.mg-sub {
    font-weight: 400;
    font-size: 0.65rem;
    color: #666;
}

/* Status Labels */
.status-active {
    color: #0a8f5a;
    font-weight: 600;
}

.status-expired,
.status-inactive {
    color: #d32f2f;
    font-weight: 600;
}

/* Membership Details */
.membership-details p {
    margin: 10px 0;
    font-size: 0.7rem;
}

.membership-details strong {
    display: inline-block;
    min-width: 150px;
    font-weight: 700;
}

/* Cancellation Info */
.cancellation-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.cancellation-info h3 {
    font-size: 0.8rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: #856404;
}

.cancellation-info p {
    font-size: 0.7rem;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .mg-billing-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .mg-billing-form .form-group.half-width {
        flex: 1;
    }
}