/**
 * Frontend styles for Vendor Referral System
 *
 * @package Vendor_Referral_System
 */

/* Dashboard */
.vrs-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.vrs-section {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
}

.vrs-section h2 {
    margin-top: 0;
    color: #2c3e30;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Referral Link */
.vrs-referral-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.vrs-referral-link-container input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.vrs-button {
    background-color: #2c3e30;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.vrs-button:hover {
    opacity: 0.9;
}

/* Custom Code */
.vrs-custom-code-container {
    margin-top: 20px;
}

.vrs-custom-code-container h3 {
    margin-top: 0;
    font-size: 16px;
}

.vrs-custom-code-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vrs-custom-code-form input {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#vrs-code-message {
    margin-left: 10px;
    font-size: 14px;
}

/* Stats */
.vrs-stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.vrs-stat-card {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 5px;
    background: #f9f9f9;
}

.vrs-stat-icon {
    margin-right: 15px;
}

.vrs-stat-icon .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: #2c3e30;
}

.vrs-stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

.vrs-stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e30;
}

/* Tabs */
.vrs-tabs {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.vrs-tab-nav {
    display: flex;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.vrs-tab-button {
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
}

.vrs-tab-button.active {
    color: #2c3e30;
    border-bottom-color: #2c3e30;
    background: #fff;
}

.vrs-tab-content {
    display: none;
    padding: 20px;
}

.vrs-tab-content.active {
    display: block;
}

/* Tables */
.vrs-table {
    width: 100%;
    border-collapse: collapse;
}

.vrs-table th,
.vrs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.vrs-table th {
    background: #f9f9f9;
    font-weight: 600;
}

/* Status */
.vrs-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.vrs-status-pending {
    background-color: #f0f0f1;
    color: #50575e;
}

.vrs-status-approved {
    background-color: #d1e4dd;
    color: #0a4b3e;
}

.vrs-status-rejected {
    background-color: #f8d7da;
    color: #842029;
}

/* Empty State */
.vrs-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.vrs-empty-icon {
    margin-bottom: 15px;
}

.vrs-empty-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #ccc;
}

.vrs-empty-state h3 {
    margin: 0 0 10px 0;
    color: #666;
}

.vrs-empty-state p {
    color: #888;
    margin: 0;
}

/* Notices */
.vrs-notice {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.vrs-notice-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.vrs-error {
    padding: 15px;
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .vrs-referral-link-container,
    .vrs-custom-code-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .vrs-custom-code-form input {
        width: 100%;
    }
    
    .vrs-stats-container {
        flex-direction: column;
    }
    
    .vrs-tab-nav {
        flex-direction: column;
    }
    
    .vrs-table {
        display: block;
        overflow-x: auto;
    }
} 