/**
 * IELTS Membership Plugin Styles
 */

/* Form Container */
.iw-form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Clean login form - remove background */
.iw-login-form-wrapper .iw-form-container {
    background: transparent;
    box-shadow: none;
    padding: 20px;
}

.iw-form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Form Elements */
.iw-form-group {
    margin-bottom: 20px;
}

.iw-form-row {
    display: flex;
    gap: 15px;
}

.iw-form-half {
    flex: 1;
}

.iw-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.iw-form-group input[type="text"],
.iw-form-group input[type="email"],
.iw-form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.iw-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.iw-form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

/* Checkbox */
.iw-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.iw-checkbox input {
    margin-right: 8px;
}

/* Buttons */
.iw-btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.iw-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    width: 100%;
}

.iw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.iw-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.iw-btn-secondary:hover {
    background: #5a6268;
}

.iw-btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.iw-btn .iw-spinner {
    display: none;
}

.iw-btn.loading .iw-btn-text {
    display: none;
}

.iw-btn.loading .iw-spinner {
    display: inline;
}

/* Messages */
.iw-form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.iw-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.iw-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Form Footer */
.iw-form-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.iw-form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.iw-form-footer a:hover {
    text-decoration: underline;
}

/* Registration Code */
.iw-registration-code {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.iw-registration-code strong {
    color: #667eea;
    font-size: 18px;
}

/* Dashboard */
.iw-dashboard-container,
.iw-account-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.iw-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.iw-dashboard-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.iw-dashboard-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.iw-welcome-card {
    grid-column: span 2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.iw-welcome-card h3 {
    color: #fff;
}

/* Membership Status */
.iw-membership-status {
    text-align: center;
}

.iw-plan-name {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.iw-status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin: 10px 0;
}

.iw-status-active {
    background: #d4edda;
    color: #155724;
}

.iw-status-expired {
    background: #f8d7da;
    color: #721c24;
}

.iw-status-cancelled {
    background: #e2e3e5;
    color: #383d41;
}

/* Action List */
.iw-action-list {
    list-style: none;
    padding: 0;
}

.iw-action-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.iw-action-list li:last-child {
    border-bottom: none;
}

.iw-action-list a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.iw-action-list a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Account Info */
.iw-account-info,
.iw-membership-info,
.iw-password-change {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.iw-account-info h3,
.iw-membership-info h3,
.iw-password-change h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.iw-account-info p,
.iw-membership-info p {
    margin-bottom: 10px;
    color: #555;
}

/* Account Table */
.iw-account-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.iw-account-table th {
    text-align: left;
    padding: 12px;
    width: 150px;
    font-weight: 600;
    color: #555;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.iw-account-table td {
    padding: 12px;
    color: #333;
    border: 1px solid #e9ecef;
}

.iw-account-table tr:hover {
    background: #f8f9fa;
}

/* Notices */
.iw-notice {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

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

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

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

/* Loading */
.iw-loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

/* No Membership */
.iw-no-membership {
    text-align: center;
    padding: 40px;
}

.iw-no-membership p {
    margin-bottom: 20px;
    color: #666;
}

/* Account Actions */
.iw-account-actions {
    margin-top: 30px;
    text-align: center;
}

/* Error */
.iw-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Success */
.iw-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

/* Extend Membership */
.iw-extend-membership-wrapper {
    max-width: 600px;
    margin: 40px auto;
}

.iw-extend-container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.iw-extend-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.iw-extend-container > p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.iw-success-message {
    text-align: center;
    padding: 40px;
}

.iw-success-message h3 {
    color: #28a745;
    margin-bottom: 15px;
}

.iw-success-message p {
    color: #666;
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .iw-form-container {
        padding: 30px 20px;
    }
    
    .iw-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .iw-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .iw-welcome-card {
        grid-column: span 1;
    }
}
