/**
 * ReferralPress Frontend Styles
 */

/* Dashboard */
.rp-affiliate-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rp-dashboard-header {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rp-dashboard-header h2 {
    margin: 0 0 10px 0;
    color: #1d2327;
}

.rp-dashboard-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rp-nav-item {
    padding: 10px 20px;
    background: #fff;
    text-decoration: none;
    color: #1d2327;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.rp-nav-item:hover,
.rp-nav-item.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.rp-dashboard-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Stats Grid */
.rp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.rp-stat-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.rp-stat-label {
    font-size: 14px;
    color: #646970;
    margin-bottom: 10px;
    display: block;
}

.rp-stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #1d2327;
}

/* Tables */
.rp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.rp-table thead {
    background: #f8f9fa;
}

.rp-table th,
.rp-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.rp-table th {
    font-weight: 600;
    color: #1d2327;
}

.rp-table tbody tr:hover {
    background: #f8f9fa;
}

/* Badges */
.rp-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.rp-badge-pending {
    background: #f0f0f1;
    color: #646970;
}

.rp-badge-active,
.rp-badge-approved,
.rp-badge-completed {
    background: #d1e7dd;
    color: #0a4d2c;
}

.rp-badge-rejected,
.rp-badge-failed {
    background: #f8d7da;
    color: #842029;
}

.rp-badge-paid {
    background: #cfe2ff;
    color: #084298;
}

/* Forms */
.rp-form-group {
    margin-bottom: 20px;
}

.rp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d2327;
}

.rp-input,
.rp-input-large {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.rp-input:focus,
.rp-input-large:focus {
    outline: none;
    border-color: #2271b1;
}

.rp-input-large {
    font-size: 16px;
}

.rp-description {
    font-size: 13px;
    color: #646970;
    margin-top: 5px;
}

/* Buttons */
.rp-button {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f1;
    color: #1d2327;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.rp-button:hover {
    background: #dcdcde;
}

.rp-button-primary {
    background: #2271b1;
    color: #fff;
}

.rp-button-primary:hover {
    background: #135e96;
}

/* Link Generator */
.rp-link-generator,
.rp-link-generator-full {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.rp-link-copy-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rp-link-copy-wrapper input {
    flex: 1;
}

/* Creatives Grid */
.rp-creatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.rp-creative-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.rp-creative-item h4 {
    margin: 0 0 10px 0;
}

.rp-creative-preview {
    margin: 15px 0;
}

.rp-creative-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.rp-creative-code {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Notices */
.rp-notice {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.rp-notice-success {
    background: #d1e7dd;
    color: #0a4d2c;
    border: 1px solid #badbcc;
}

.rp-notice-error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Messages */
.rp-login-message,
.rp-not-affiliate-message,
.rp-pending-message,
.rp-inactive-message {
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Registration Form */
.rp-registration-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Stats Widget */
.rp-stats-widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.rp-stat-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .rp-dashboard-nav {
        flex-direction: column;
    }
    
    .rp-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .rp-link-copy-wrapper {
        flex-direction: column;
    }
    
    .rp-link-copy-wrapper input {
        width: 100%;
    }
    
    .rp-creatives-grid {
        grid-template-columns: 1fr;
    }
}


