/* View Container Styles */
.view-container {
    min-height: 100vh;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px; /* Space for bottom nav */
}

.view-header {
    margin-bottom: 24px;
}

.view-header h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1f2937;
}

.view-content {
    /* Main content area */
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

.card h2, .card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 600;
}

.card h2 {
    font-size: 20px;
    color: #374151;
}

.card h3 {
    font-size: 18px;
    color: #374151;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

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

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.form-actions .btn {
    flex: none;
}


/* Function Button Component */
.btn-function {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0;
}

.btn-function.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-function.btn-primary:hover {
    background: #2563eb;
}

.btn-function.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-function.btn-secondary:hover {
    background: #4b5563;
}

.btn-function.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-function.btn-danger:hover {
    background: #b91c1c;
}

.btn-function img {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0) invert(1);
}

/* Button Styles */
.btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

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

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Loading Styles */
.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.empty-state p {
    margin-bottom: 8px;
}

/* Organization/Register Specific */
.organization-item, .register-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.organization-item:hover, .register-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.organization-meta, .register-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: #e5e7eb;
    color: #374151;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    vertical-align: middle;
}

.register-balance {
    text-align: right;
}

/* QR Code Styles */
.qr-container {
    text-align: center;
    padding: 20px;
}

.qr-code {
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-code img {
    display: block;
    max-width: 200px;
    height: auto;
}

/* App Info Styles */
.app-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.app-info-row span:first-child {
    font-weight: 500;
    color: #374151;
}

.app-info-row span:last-child {
    color: #6b7280;
    font-family: monospace;
}

/* Utility Classes */
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.ml-2 { margin-left: 8px; }

.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 18px; }

.font-semibold { font-weight: 600; }
.text-center { text-align: center; }

.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-green-600 { color: #059669; }