body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Authentication Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 500px;
}

.register-form {
    max-width: 600px;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section h1 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.logo-section h2 {
    color: #666;
    margin: 0;
    font-size: 1.2rem;
    font-weight: normal;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links p {
    margin: 10px 0;
    color: #666;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

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

.admin-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

.admin-info small {
    color: #666;
    font-size: 12px;
}

.error-message {
    background: #ffe6e6;
    color: #d8000c;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #ffb3b3;
}

.success-message {
    background: #e6ffe6;
    color: #4f8a10;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #b3ffb3;
}

/* User Info Header */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.user-welcome {
    color: #333;
    font-weight: bold;
}

.admin-badge,
.health-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.admin-badge {
    background: #ff6b6b;
    color: white;
}

.health-badge {
    background: #4ecdc4;
    color: white;
}

.logout-btn {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.logout-btn:hover {
    background: #c82333;
}

/* Admin Panel Styles */
.admin-panel {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-button:hover {
    color: #667eea;
}

.rangers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ranger-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.ranger-card h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2rem;
}

.ranger-card p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.approval-controls {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.permission-checkboxes {
    margin-bottom: 15px;
}

.permission-checkboxes label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.permission-checkboxes input[type="checkbox"] {
    margin-right: 8px;
}

.approval-buttons {
    display: flex;
    gap: 10px;
}

.approve-btn {
    flex: 1;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.approve-btn:hover {
    background: #218838;
}

.reject-btn {
    flex: 1;
    padding: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.reject-btn:hover {
    background: #c82333;
}

.rangers-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

.rangers-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.perm-badge {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 5px;
    text-transform: uppercase;
}

.perm-badge.admin {
    background: #fff3cd;
    color: #856404;
}

.perm-badge.health {
    background: #d1ecf1;
    color: #0c5460;
}

.small-btn {
    padding: 4px 8px;
    margin: 2px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background: #6c757d;
    color: white;
}

.small-btn:hover {
    background: #5a6268;
}

/* Dashboard filters */
.dashboard-filters {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.filter-group label {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.95rem;
    height: 38px;
}

/* Apply Filters button alignment */
.dashboard-filters #applyFilters {
    margin-top: 25px;
    height: 38px;
}

/* Multi-select customer filter */
#customerMultiSelectContainer {
    position: relative;
    min-width: 300px;
    max-width: 400px;
}

.multi-select-wrapper {
    position: relative;
}

#customerMultiSearch {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    height: 38px;
    box-sizing: border-box;
}

#customerMultiSearch:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.multi-select-options {
    padding: 0;
}

.multi-select-option {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.multi-select-option:hover {
    background-color: #f8f9fa;
}

.multi-select-option:last-child {
    border-bottom: none;
}

.multi-select-option.disabled {
    color: #999;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.multi-select-option.clear-all {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 500;
}

.multi-select-option.clear-all:hover {
    background-color: #ffeaa7;
}

.selected-customers {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
}

.customer-tag {
    background-color: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 24px;
    box-sizing: border-box;
}

.customer-tag.all-customers {
    background-color: #28a745;
    height: 30px;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 4px;
    margin-top: 0;
}

.remove-customer {
    cursor: pointer;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background-color 0.2s;
}

.remove-customer:hover {
    background-color: rgba(255,255,255,0.5);
}

/* Revenue summary */
.revenue-summary {
    margin-bottom: 30px;
}

/* Customer search autocomplete */
.customer-search-container {
    position: relative;
}

.customer-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.customer-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.customer-search-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.customer-search-item:hover {
    background-color: #f5f5f5;
}

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

.customer-search-item .customer-name {
    font-weight: bold;
    color: #333;
}

.customer-search-item .customer-details {
    font-size: 0.9em;
    color: #666;
}

.revenue-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.revenue-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 24px;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    flex: 1;
    text-align: center;
}

.revenue-card.total-revenue {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    min-width: 280px;
}

.revenue-card h4 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

.revenue-amount {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.revenue-amount.total {
    font-size: 2.8rem;
}

.revenue-count {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 8px 0 0 0;
}

.revenue-period {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 8px 0 0 0;
    font-style: italic;
}

/* Dashboard stat cards */
.dashboard-stats {
    margin-top: 20px;
}

#recentActivity {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.stat-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
}

.stat-card h4 {
    margin-top: 0;
    color: #333;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #0066cc;
}

/* Patient history styling */
.patient-history-controls {
    margin: 15px 0;
}

.history-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 15px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

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

.history-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1;
}

.history-table tr:hover {
    background-color: #f5f5f5;
}

.history-table .btn-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* New patient form styling */
#newPatientForm {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #28a745;
}

#newPatientForm h4 {
    margin-top: 0;
    color: #28a745;
}

/* Form row styling for health records */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.form-row .form-group.full-width {
    flex: 100%;
    min-width: 100%;
}

header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
}

nav {
    background-color: #f4f4f4;
    padding: 0.5rem;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

nav ul li a {
    text-decoration: none;
    color: #333;
}

main {
    flex: 1;
    padding: 2rem;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input, select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input[type="file"] {
    padding: 0.5rem 0;
}

select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

button {
    background-color: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

/* Action buttons styling */
.edit-btn {
    background-color: #007bff !important;
    color: white !important;
    margin-left: 5px;
}

.edit-btn:hover {
    background-color: #0056b3 !important;
}

.delete-btn {
    background-color: #dc3545 !important;
    color: white !important;
    margin-left: 5px;
}

.delete-btn:hover {
    background-color: #c82333 !important;
}

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

th, td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

.chart-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
}

.photo-preview {
    margin-top: 10px;
    max-width: 300px;
    min-height: 150px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    overflow: hidden;
    padding: 10px;
    flex-direction: column;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Add styles for customer photos */
.photos-section {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.photo-container {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
}

.photo-container h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.customer-photo {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    object-fit: contain;
}

/* Health Records Table Styles */
.health-records-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95em;
}

.health-records-table th {
    background-color: #4a5568;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.health-records-table td {
    padding: 10px;
    border: 1px solid #e2e8f0;
    vertical-align: top;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.health-records-table td pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
}

.health-records-table tr:nth-child(even) {
    background-color: #f7fafc;
}

.health-records-table tr:hover {
    background-color: #edf2f7;
}

.highlighted-record {
    background-color: #ebf8ff !important;
    border-left: 4px solid #3182ce;
}

/* Health Record Form Styles */
.health-record-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.health-record-form h2 {
    color: #2d3748;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 1.5rem;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-group {
    flex: 1;
    min-width: 0;
}

.form-group.full-width {
    flex: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

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

/* AI Analysis Section */
.ai-analysis-section {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #38a169;
}

.ai-buttons-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ai-button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-button.primary {
    background: #38a169;
    color: white;
}

.ai-button.primary:hover {
    background: #2f855a;
    transform: translateY(-1px);
}

.ai-button.secondary {
    background: #3182ce;
    color: white;
}

.ai-button.secondary:hover {
    background: #2c5282;
    transform: translateY(-1px);
}

.ai-button.answer {
    background: #ed8936;
    color: white;
}

.ai-button.answer:hover {
    background: #dd6b20;
    transform: translateY(-1px);
}

.ai-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ai-response {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.ai-response h4 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1rem;
}

/* Customer Questions Section */
.customer-questions-section {
    background: #fef5e7;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ed8936;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    min-width: 120px;
}

.btn-primary {
    background: #3182ce;
    color: white;
}

.btn-primary:hover {
    background: #2c5282;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #718096;
    color: white;
}

.btn-secondary:hover {
    background: #4a5568;
    transform: translateY(-1px);
}

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

.loading::after {
    content: '...';
    animation: loading 1s infinite;
}

@keyframes loading {
    0%, 33% { content: '...'; }
    34%, 66% { content: '..'; }
    67%, 100% { content: '.'; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .health-record-form {
        margin: 10px;
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .ai-buttons-container {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Coinbase Wallet Center Styles */
.wallet-center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wallet-status-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.status-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    margin-bottom: 15px;
}

.status-card.error {
    border-left-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

.status-card.warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
    color: #856404;
}

.status-card.success {
    border-left-color: #28a745;
    background-color: #d4edda;
    color: #155724;
}

.coinbase-command-center {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.coinbase-command-center h2 {
    margin-bottom: 20px;
    text-align: center;
}

.coinbase-command-center button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.coinbase-command-center button:hover {
    background-color: #0056b3;
}

.coinbase-command-center button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.status-success {
    color: #155724;
    background: #d4edda;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
    margin: 10px 0;
}

.status-error {
    color: #721c24;
    background: #f8d7da;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
}

.balance-amount {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin: 10px 0;
}

.balance-details p {
    margin: 5px 0;
    color: #6c757d;
}

.config-help {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.config-help ol {
    margin: 10px 0;
    padding-left: 20px;
}

.config-help ul {
    margin: 5px 0;
    padding-left: 20px;
}

.config-help code {
    background: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.action-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.wallet-details {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.account-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.account-card.primary {
    border-color: #007bff;
    background: #e7f3ff;
}

.account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.account-header h4 {
    margin: 0;
    color: #333;
}

.account-type {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
}

.account-balance {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}

.transactions-table {
    overflow-x: auto;
    margin-top: 15px;
}

.transactions-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

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

.transactions-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.transactions-table tr:hover {
    background: #f8f9fa;
}





.error-message {
    color: #721c24;
    background: #f8d7da;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
}

.success-message {
    color: #155724;
    background: #d4edda;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
    margin: 10px 0;
}

/* Dashboard Header with User Menu */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.dashboard-header h2 {
    margin: 0;
    color: #333;
}

.user-profile-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.user-info:hover {
    background: #5a67d8;
}

.user-name {
    font-size: 14px;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
}

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

.dropdown-item:hover {
    background: #f8f9fa;
    color: #667eea;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Status indicators for transactions */
.status-completed {
    background: #d4edda;
    color: #155724;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
}

/* Translation widget styles */
.translation-widget {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    min-width: 400px;
    max-width: 500px;
}

.translation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.translation-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #e9ecef;
    color: #333;
}

.translation-content {
    padding: 20px;
}

.translation-input {
    margin-bottom: 20px;
}

.translation-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.translation-input input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.translation-input input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.translation-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.translation-actions .btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.translation-actions .btn-primary {
    background-color: #007bff;
    color: white;
}

.translation-actions .btn-primary:hover {
    background-color: #0056b3;
}

.translation-actions .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.translation-actions .btn-secondary:hover {
    background-color: #545b62;
}

.translation-status {
    min-height: 25px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
}

.translation-status .loading {
    color: #007bff;
    font-style: italic;
}

.translation-status .success {
    color: #28a745;
    font-weight: 500;
}

.translation-status .error {
    color: #dc3545;
    font-weight: 500;
}

/* Overlay when translation widget is open */
.translation-widget::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: -1;
}

/* Responsive design for wallet features */
@media (max-width: 768px) {
    .wallet-status-section,
    .wallet-actions {
        grid-template-columns: 1fr;
    }
    

    
    .accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .translation-widget {
        min-width: 90%;
        max-width: 95%;
    }
}