/* Subscription Manager - Public Styles */

/* General Styles */
.sm-message {
    margin: 15px 0;
}

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

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

/* Form Styles */
.sm-form-group {
    margin-bottom: 20px;
}

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

.sm-form-group input[type="text"],
.sm-form-group input[type="email"],
.sm-form-group input[type="password"],
.sm-form-group textarea,
.sm-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

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

.sm-form-links {
    margin-top: 20px;
    text-align: center;
}

.sm-form-links a {
    color: #007bff;
    text-decoration: none;
}

.sm-form-links a:hover {
    text-decoration: underline;
}

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

.sm-btn-primary {
    background-color: #007bff;
    color: #fff;
}

.sm-btn-primary:hover {
    background-color: #0056b3;
}

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

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

.sm-btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.sm-btn-danger:hover {
    background-color: #c82333;
}

.sm-btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.sm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Packages Grid */
.sm-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.sm-package-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sm-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sm-package-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 6px 6px 0 0;
}

.sm-package-header h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
}

.sm-package-price {
    font-size: 18px;
}

.sm-package-price .sm-amount {
    display: block;
    font-size: 42px;
    font-weight: bold;
    margin: 10px 0;
}

.sm-package-price .sm-duration {
    font-size: 14px;
    opacity: 0.9;
}

.sm-package-body {
    padding: 30px;
}

.sm-package-description {
    color: #666;
    margin-bottom: 20px;
}

.sm-package-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sm-package-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.sm-package-features li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

.sm-package-footer {
    padding: 0 30px 30px;
}

.sm-package-footer .sm-btn {
    width: 100%;
}

/* Checkout Page */
.sm-checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.sm-checkout-details,
.sm-checkout-payment {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.sm-checkout-table {
    width: 100%;
    margin: 20px 0;
}

.sm-checkout-table th {
    text-align: left;
    padding: 10px;
    font-weight: 600;
}

.sm-checkout-table td {
    padding: 10px;
}

.sm-checkout-table .sm-amount {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.sm-package-info,
.sm-package-features {
    margin-top: 20px;
}

.sm-payment-info {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.sm-payment-methods {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

/* My Account Page */
.sm-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

.sm-account-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.sm-tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.sm-tab-btn:hover {
    color: #007bff;
}

.sm-tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.sm-tab-pane {
    display: none;
}

.sm-tab-pane.active {
    display: block;
}

.sm-subscription-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
}

.sm-subscription-info h4 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
}

.sm-subscription-info p {
    margin: 10px 0;
    color: #666;
}

.sm-subscription-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.sm-auto-renew-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.sm-history-table th,
.sm-history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.sm-history-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Status Badges */
.sm-status-active {
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.sm-status-pending {
    background: #ffc107;
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.sm-status-expired,
.sm-status-cancelled,
.sm-status-failed {
    background: #dc3545;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.sm-status-inactive {
    background: #6c757d;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .sm-packages-grid {
        grid-template-columns: 1fr;
    }

    .sm-checkout-container {
        grid-template-columns: 1fr;
    }

    .sm-account-header {
        flex-direction: column;
        gap: 15px;
    }

    .sm-account-tabs {
        flex-direction: column;
    }

    .sm-subscription-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
