/* Global Styles */
.aimpay-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Dashboard Styles */
.aimpay-dashboard {
    padding: 20px 0;
}

.aimpay-welcome {
    margin-bottom: 30px;
}

.aimpay-welcome h1 {
    font-size: 32px;
    margin-bottom: 5px;
    color: #333;
}

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

.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.stat-icon {
    font-size: 32px;
    margin-right: 15px;
}

.stat-content {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Quick Actions */
.aimpay-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.quick-action {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.quick-action:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.action-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
}

.action-label {
    font-size: 14px;
    font-weight: 500;
}

/* Wallet Page */
.wallet-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.balance-label {
    display: block;
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.balance-amount {
    display: block;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.balance-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.wallet-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.transactions-section, .wallet-stats {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.transaction-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.positive {
    color: #28a745;
}

.negative {
    color: #dc3545;
}

.status-pending {
    color: #ffc107;
}

.status-completed {
    color: #28a745;
}

.status-failed {
    color: #dc3545;
}

.wallet-stats .stat-item {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.wallet-stats .stat-item:last-child {
    border-bottom: none;
}

.wallet-stats .stat-label {
    color: #6c757d;
}

.wallet-stats .stat-value {
    font-size: 18px;
    margin-top: 5px;
}

/* Promotions Page */
.promo-search {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
}

.promo-search input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 16px;
}

.promo-search button {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
}

.promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.promo-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 4px solid #667eea;
}

.promo-card h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.promo-card .promo-details {
    margin: 15px 0;
}

.promo-card .promo-details span {
    display: block;
    margin: 5px 0;
    color: #6c757d;
    font-size: 14px;
}

.promo-card .discount {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
}

/* Activity Page */
.activity-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.activity-filters select,
.activity-filters input,
.activity-filters button {
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
}

.activity-timeline {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.activity-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 24px;
    margin-right: 15px;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.activity-content p {
    margin: 0 0 5px 0;
    color: #6c757d;
}

.activity-date {
    font-size: 12px;
    color: #adb5bd;
}

.activity-amount {
    float: right;
    font-weight: bold;
}

/* Messages Page */
.messages-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.message-compose {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.message-compose form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-compose input,
.message-compose textarea {
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
}

.message-compose textarea {
    min-height: 100px;
}

.message-compose button {
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.message-inbox {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.message-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.message-item:last-child {
    border-bottom: none;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.message-sender {
    font-weight: 500;
    color: #495057;
}

.message-date {
    color: #6c757d;
    font-size: 12px;
}

.message-item h4 {
    margin: 5px 0;
    color: #333;
}

.message-item p {
    margin: 5px 0;
    color: #6c757d;
}

.message-unread {
    display: inline-block;
    padding: 2px 10px;
    background: #dc3545;
    color: white;
    border-radius: 12px;
    font-size: 12px;
}

.no-messages {
    color: #6c757d;
    text-align: center;
    padding: 20px;
}

/* Profile Page */
.profile-form {
    max-width: 600px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    min-height: 100px;
}

.profile-form button {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.profile-form button:hover {
    background: #5a67d8;
}

/* Responsive */
@media (max-width: 768px) {
    .aimpay-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .wallet-sections {
        grid-template-columns: 1fr;
    }
    
    .messages-container {
        grid-template-columns: 1fr;
    }
    
    .promos-grid {
        grid-template-columns: 1fr;
    }
}


/* Admin specific styles */
.aimpay-admin-wrap {
    padding: 20px;
    max-width: 1200px;
}

.aimpay-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.aimpay-admin-header h1 {
    margin: 0;
    font-size: 28px;
}

.aimpay-admin-header .aimpay-version {
    color: #6c757d;
    font-size: 14px;
}

/* Status indicators */
.aimpay-status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.aimpay-status-indicator.active {
    background: #28a745;
}

.aimpay-status-indicator.inactive {
    background: #dc3545;
}

.aimpay-status-indicator.pending {
    background: #ffc107;
}

/* Quick action buttons */
.aimpay-action-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.aimpay-action-group .button {
    padding: 8px 20px;
    height: auto;
}

/* Export buttons */
.aimpay-export-actions {
    margin: 20px 0;
}

.aimpay-export-actions .button {
    margin-right: 10px;
}

/* Responsive admin */
@media screen and (max-width: 782px) {
    .aimpay-admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .aimpay-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}