/* Rent Wallet Frontend Styles */

:root {
    --rw-primary: #2563eb;
    --rw-primary-dark: #1d4ed8;
    --rw-success: #10b981;
    --rw-warning: #f59e0b;
    --rw-danger: #ef4444;
    --rw-gray-100: #f3f4f6;
    --rw-gray-200: #e5e7eb;
    --rw-gray-300: #d1d5db;
    --rw-gray-600: #4b5563;
    --rw-gray-800: #1f2937;
}

/* Dashboard Layout */
.rw-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rw-dashboard h2 {
    margin-bottom: 30px;
    color: var(--rw-gray-800);
}

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

/* Cards */
.rw-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.rw-card h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: var(--rw-gray-600);
    font-weight: 500;
}

/* Wallet Card */
.rw-wallet-card {
    background: linear-gradient(135deg, var(--rw-primary) 0%, var(--rw-primary-dark) 100%);
    color: #fff;
}

.rw-wallet-card h3 {
    color: rgba(255,255,255,0.8);
}

.rw-balance {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
}

.rw-currency {
    opacity: 0.8;
    margin: 0;
}

/* Summary Cards */
.rw-summary-card {
    text-align: center;
}

.rw-stat {
    font-size: 32px;
    font-weight: bold;
    color: var(--rw-primary);
}

.rw-summary-card.rw-warning .rw-stat {
    color: var(--rw-danger);
}

.rw-summary-card.rw-success .rw-stat {
    color: var(--rw-success);
}

/* Tier Card */
.rw-tier-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.rw-tier-bronze {
    background: #cd7f32;
    color: #fff;
}

.rw-tier-silver {
    background: #c0c0c0;
    color: #333;
}

.rw-tier-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #333;
}

.rw-tier-platinum {
    background: linear-gradient(135deg, #e5e4e2 0%, #a8a8a8 100%);
    color: #333;
}

.rw-cashback-rate {
    color: var(--rw-success);
    font-weight: 500;
    margin: 8px 0;
}

.rw-coverage {
    margin: 16px 0;
    padding: 12px;
    background: var(--rw-gray-100);
    border-radius: 6px;
}

.rw-coverage-label {
    color: var(--rw-gray-600);
}

.rw-coverage-value {
    font-weight: 600;
    color: var(--rw-gray-800);
}

/* Progress Bar */
.rw-tier-progress {
    margin-top: 16px;
}

.rw-progress-bar {
    height: 8px;
    background: var(--rw-gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.rw-progress-fill {
    height: 100%;
    background: var(--rw-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rw-next-tier {
    font-size: 13px;
    color: var(--rw-gray-600);
    margin-top: 8px;
}

/* Cashback Card */
.rw-cashback-total {
    font-size: 28px;
    font-weight: bold;
    color: var(--rw-success);
}

/* Tables */
.rw-table {
    width: 100%;
    border-collapse: collapse;
}

.rw-table th,
.rw-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--rw-gray-200);
}

.rw-table th {
    font-weight: 600;
    color: var(--rw-gray-600);
    font-size: 13px;
    text-transform: uppercase;
}

.rw-table tbody tr:hover {
    background: var(--rw-gray-100);
}

/* Status Badges */
.rw-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.rw-status-active {
    background: #d1fae5;
    color: #065f46;
}

.rw-status-ended {
    background: #fee2e2;
    color: #991b1b;
}

.rw-status-paused {
    background: #fef3c7;
    color: #92400e;
}

.rw-status-available {
    background: #dbeafe;
    color: #1e40af;
}

.rw-status-occupied {
    background: #d1fae5;
    color: #065f46;
}

/* Amount Colors */
.rw-positive {
    color: var(--rw-success);
}

.rw-negative {
    color: var(--rw-danger);
}

/* Forms */
.rw-form {
    max-width: 400px;
}

.rw-form-row {
    margin-bottom: 16px;
}

.rw-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--rw-gray-600);
}

.rw-form input[type="text"],
.rw-form input[type="email"],
.rw-form input[type="password"],
.rw-form input[type="number"],
.rw-form textarea,
.rw-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rw-gray-300);
    border-radius: 6px;
    font-size: 14px;
}

.rw-form input:focus,
.rw-form textarea:focus,
.rw-form select:focus {
    outline: none;
    border-color: var(--rw-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.rw-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--rw-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.rw-button:hover {
    background: var(--rw-primary-dark);
    color: #fff;
}

.rw-button-secondary {
    background: var(--rw-gray-200);
    color: var(--rw-gray-800);
}

.rw-button-secondary:hover {
    background: var(--rw-gray-300);
    color: var(--rw-gray-800);
}

.rw-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.rw-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.rw-message.rw-success {
    background: #d1fae5;
    color: #065f46;
}

.rw-message.rw-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Login Form */
.rw-login-form {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.rw-login-form .rw-form {
    max-width: none;
}

.rw-remember {
    display: flex;
    align-items: center;
}

.rw-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.rw-login-links {
    text-align: center;
    margin-top: 16px;
}

.rw-login-links a {
    color: var(--rw-primary);
    text-decoration: none;
}

.rw-login-links a:hover {
    text-decoration: underline;
}

/* Export Link */
.rw-export-link {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--rw-gray-200);
}

/* Tenancy Details */
.rw-tenancy-details {
    margin-top: 16px;
}

.rw-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--rw-gray-100);
}

.rw-detail:last-child {
    border-bottom: none;
}

.rw-label {
    color: var(--rw-gray-600);
}

.rw-value {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .rw-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .rw-table {
        display: block;
        overflow-x: auto;
    }
    
    .rw-balance {
        font-size: 28px;
    }
}
