/* Frontend Styles */
.am-registration-form-wrapper,
.am-login-form-wrapper,
.am-dashboard-wrapper {
    max-width: 800px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.am-form-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.am-form-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.am-form-subtitle {
    color: #666;
    margin-bottom: 30px;
}

.am-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.am-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .am-form-row {
        grid-template-columns: 1fr;
    }
}

.am-form-group {
    display: flex;
    flex-direction: column;
}

.am-form-group label {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.am-form-group input[type="text"],
.am-form-group input[type="email"],
.am-form-group input[type="password"],
.am-form-group select,
.am-form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fafafa;
}

.am-form-group input:focus,
.am-form-group select:focus,
.am-form-group textarea:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
    background: #fff;
}

.am-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.am-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.am-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.am-btn-primary {
    background: #007cba;
    color: #fff;
}

.am-btn-primary:hover {
    background: #005a87;
}

.am-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.am-btn-secondary:hover {
    background: #e0e0e0;
}

.am-btn-link {
    background: none;
    color: #007cba;
    padding: 8px 0;
    text-decoration: underline;
}

.am-btn-block {
    width: 100%;
    text-align: center;
}

.am-form-footer {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.am-form-footer a {
    color: #007cba;
}

.am-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

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

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

/* Dashboard Styles */
.am-dashboard-header {
    margin-bottom: 30px;
}

.am-dashboard-header h2 {
    font-size: 28px;
    margin: 0 0 5px;
    color: #333;
}

.am-dashboard-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.am-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.am-stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.am-stat-card .am-stat-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.am-stat-card .am-stat-number {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.am-stat-card .am-stat-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.am-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.am-section h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
}

.am-referral-link-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.am-referral-link-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #f9f9f9;
    cursor: pointer;
}

.am-description {
    color: #666;
    font-size: 13px;
    margin-top: 10px;
}

/* Tabs */
.am-tabs {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.am-tab-nav {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: #f9f9f9;
    overflow-x: auto;
}

.am-tab-btn {
    padding: 14px 24px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.am-tab-btn:hover {
    color: #333;
    background: #f0f0f0;
}

.am-tab-btn.active {
    color: #007cba;
    border-bottom-color: #007cba;
    background: #fff;
}

.am-tab-content {
    display: none;
    padding: 25px;
}

.am-tab-content.active {
    display: block;
}

.am-tab-content h3 {
    margin: 0 0 15px;
    font-size: 18px;
}

/* Table */
.am-table-responsive {
    overflow-x: auto;
}

.am-table {
    width: 100%;
    border-collapse: collapse;
}

.am-table th,
.am-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.am-table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.am-table tbody tr:hover {
    background: #f5f5f5;
}

.am-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.am-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.am-badge-pending {
    background: #fff3cd;
    color: #856404;
}

.am-badge-approved,
.am-badge-active {
    background: #d4edda;
    color: #155724;
}

.am-badge-paid {
    background: #cce5ff;
    color: #004085;
}

.am-badge-rejected {
    background: #f8d7da;
    color: #721c24;
}

.am-badge-reversed,
.am-badge-cancelled {
    background: #e2e3e5;
    color: #383d41;
}

/* Notices */
.am-notice {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid transparent;
}

.am-notice-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.am-notice-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.am-notice-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.am-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

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

/* MLM Team section */
.am-team-card {
    background: #f0f8ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.am-team-card h4 {
    margin: 0 0 10px;
    color: #004085;
    font-size: 16px;
}

.am-override-badge {
    background: #e8f4f8;
    color: #004085;
    border: 1px solid #b8daff;
}

/* Mini stats for shortcode */
.am-mini-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.am-mini-stats .am-stat-box {
    text-align: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    min-width: 120px;
}

.am-mini-stats .am-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.am-mini-stats .am-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}
