/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors inspired by fonnte.com */
    --primary: 220 67% 51%; /* #2563eb */
    --primary-dark: 220 67% 41%; /* #1d4ed8 */
    --success: 142 71% 45%; /* #10b981 */
    --danger: 0 84% 60%; /* #ef4444 */
    --warning: 45 93% 47%; /* #f59e0b */
    --background: 210 11% 98%; /* #f8fafc */
    --surface: 0 0% 100%; /* #ffffff */
    --border: 214 20% 89%; /* #e2e8f0 */
    --text: 222 84% 5%; /* #0f172a */
    --text-muted: 215 16% 47%; /* #64748b */
    --shadow: 220 3% 15% / 0.1; /* rgba(0,0,0,0.1) */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--text));
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: hsl(var(--surface));
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px hsla(var(--shadow));
    border: 1px solid hsl(var(--border));
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    color: hsl(var(--text-muted));
    font-size: 1.1rem;
}

/* Admin Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 30px;
    background: hsl(var(--surface));
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px hsla(var(--shadow));
    border: 1px solid hsl(var(--border));
}

.admin-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.admin-title p {
    color: hsl(var(--text-muted));
}

.admin-actions {
    display: flex;
    gap: 12px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-bottom: 40px;
}

.admin-content {
    flex: 1;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.alert-error {
    background: hsl(0 84% 60% / 0.1);
    border: 1px solid hsl(0 84% 60% / 0.3);
    color: hsl(0 84% 35%);
}

.alert-success {
    background: hsl(142 71% 45% / 0.1);
    border: 1px solid hsl(142 71% 45% / 0.3);
    color: hsl(142 71% 25%);
}

.alert-icon {
    font-size: 1.2rem;
}

/* Forms */
.confess-form,
.login-form,
.add-token-form {
    background: hsl(var(--surface));
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px hsla(var(--shadow));
    border: 1px solid hsl(var(--border));
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: hsl(var(--text));
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid hsl(var(--border));
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: hsl(var(--surface));
}

.file-input {
    padding: 8px 12px !important;
    border: 2px dashed hsl(var(--border)) !important;
    background: hsl(var(--background)) !important;
    cursor: pointer;
}

.file-input:hover {
    border-color: hsl(var(--primary)) !important;
    background: hsl(var(--primary) / 0.05) !important;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

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

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: hsl(var(--text-muted));
}

.char-counter {
    margin-top: 6px;
    font-size: 0.875rem;
    color: hsl(var(--text-muted));
    text-align: right;
}

.char-counter.error {
    color: hsl(var(--danger));
}

/* Token Input Group */
.token-input-group {
    display: flex;
    gap: 8px;
}

.token-input-group input {
    flex: 1;
}

.btn-suggest {
    padding: 12px 16px;
    background: hsl(var(--border));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.btn-suggest:hover {
    background: hsl(214 20% 84%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: hsl(var(--primary));
    color: white;
}

.btn-primary:hover {
    background: hsl(var(--primary-dark));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsla(var(--primary) / 0.4);
}

.btn-success {
    background: hsl(var(--success));
    color: white;
}

.btn-success:hover {
    background: hsl(142 71% 35%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsla(var(--success) / 0.4);
}

.btn-secondary {
    background: hsl(var(--border));
    color: hsl(var(--text));
}

.btn-secondary:hover {
    background: hsl(214 20% 84%);
}

/* Price Calculator */
.price-calculator {
    margin: 30px 0;
    padding: 24px;
    background: hsl(var(--background));
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
}

.price-calculator h3 {
    margin-bottom: 16px;
    color: hsl(var(--text));
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.calc-option {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: hsl(var(--surface));
    border: 2px solid hsl(var(--border));
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.calc-option:hover {
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
}

.calc-option.selected {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.05);
}

.calc-coins {
    font-weight: 600;
    color: hsl(var(--text));
}

.calc-price {
    font-size: 0.875rem;
    color: hsl(var(--success));
    font-weight: 500;
}

.calc-confess {
    font-size: 0.875rem;
    color: hsl(var(--text-muted));
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

/* Info Box */
.info-box {
    background: hsl(var(--surface));
    padding: 24px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    margin-top: 30px;
}

.info-box h3 {
    margin-bottom: 16px;
    color: hsl(var(--text));
}

.info-box ol {
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
    color: hsl(var(--text-muted));
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: hsl(var(--surface));
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 2px 4px hsla(var(--shadow));
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--primary) / 0.1);
    border-radius: 12px;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: hsl(var(--text));
}

.stat-info p {
    color: hsl(var(--text-muted));
    font-size: 0.875rem;
}

/* Admin Sections */
.admin-section {
    margin-bottom: 40px;
}

.admin-section h2 {
    margin-bottom: 20px;
    color: hsl(var(--text));
    font-size: 1.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: hsl(var(--surface));
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 8px;
    color: hsl(var(--text));
}

.empty-state p {
    color: hsl(var(--text-muted));
    margin-bottom: 20px;
}

/* Recipient Section */
.recipient-section {
    background: hsl(var(--background));
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid hsl(var(--border));
}

.recipient-section h3 {
    margin-bottom: 20px;
    color: hsl(var(--primary));
    font-size: 1.1rem;
}

/* Confess List */
.confess-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.confess-item {
    background: hsl(var(--surface));
    padding: 20px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 2px 4px hsla(var(--shadow));
}

.confess-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: hsl(var(--text-muted));
}

.confess-recipient {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: hsl(var(--primary) / 0.05);
    border-radius: 6px;
    font-size: 0.875rem;
    border-left: 3px solid hsl(var(--primary));
}

.recipient-phone {
    color: hsl(var(--text-muted));
    margin-left: 8px;
}

/* Admin Log Styles */
.confess-token {
    margin-bottom: 8px;
    padding: 6px 10px;
    background: hsl(var(--background));
    border-radius: 4px;
    font-size: 0.875rem;
}

.confess-token code {
    background: hsl(var(--border));
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.confess-image {
    margin: 12px 0;
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid hsl(var(--border));
    cursor: pointer;
}

.preview-image:hover {
    opacity: 0.8;
}

.confess-meta {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid hsl(var(--border));
}

.confess-meta small {
    color: hsl(var(--text-muted));
    font-size: 0.75rem;
}

.fonnte-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-success {
    background: hsl(var(--success) / 0.1);
    color: hsl(var(--success));
}

.status-failed {
    background: hsl(var(--danger) / 0.1);
    color: hsl(var(--danger));
}

/* Enhanced Admin Styles */
.stat-card.success {
    border-left: 4px solid hsl(var(--success));
}

.stat-card.warning {
    border-left: 4px solid hsl(var(--warning));
}

.stat-card.primary {
    border-left: 4px solid hsl(var(--primary));
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-danger {
    background: hsl(var(--danger));
    color: white;
}

.btn-danger:hover {
    background: hsl(0 84% 50%);
}

.btn-outline {
    background: transparent;
    border: 2px solid hsl(var(--border));
    color: hsl(var(--text));
}

.btn-outline:hover {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: white;
}

.btn-outline.btn-warning {
    border-color: hsl(var(--warning));
    color: hsl(var(--warning));
}

.btn-outline.btn-warning:hover {
    background: hsl(var(--warning));
    color: white;
}

.confess-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid hsl(var(--border));
}

.token-actions .action-buttons {
    display: flex;
    gap: 8px;
}

/* Edit Token Page Styles */
.token-info-card {
    background: hsl(var(--surface));
    padding: 24px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    margin-bottom: 30px;
    text-align: center;
}

.token-display-large {
    margin: 16px 0;
}

.token-display-large code {
    font-size: 1.2rem;
    padding: 12px 20px;
    background: hsl(var(--background));
    border: 2px solid hsl(var(--border));
    border-radius: 8px;
    letter-spacing: 2px;
}

.current-balance {
    margin: 16px 0;
}

.balance-label {
    color: hsl(var(--text-muted));
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: hsl(var(--primary));
    display: block;
}

.balance-rupiah {
    color: hsl(var(--success));
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

.usage-info {
    margin-top: 12px;
    color: hsl(var(--text-muted));
}

.edit-token-form {
    background: hsl(var(--surface));
    padding: 24px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    margin-bottom: 30px;
}

.quick-coin-actions {
    margin: 24px 0;
    padding: 20px;
    background: hsl(var(--background));
    border-radius: 8px;
    border: 1px solid hsl(var(--border));
}

.quick-coin-actions h4 {
    margin-bottom: 16px;
    color: hsl(var(--text));
}

.coin-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.usage-history {
    background: hsl(var(--surface));
    padding: 24px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
}

.usage-history h3 {
    margin-bottom: 20px;
    color: hsl(var(--text));
}

.empty-history {
    text-align: center;
    padding: 40px 20px;
    color: hsl(var(--text-muted));
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    padding: 16px;
    background: hsl(var(--background));
    border-radius: 8px;
    border: 1px solid hsl(var(--border));
}

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

.history-date {
    font-size: 0.875rem;
    color: hsl(var(--text-muted));
}

.history-cost {
    font-size: 0.875rem;
    color: hsl(var(--danger));
    font-weight: 600;
}

.history-recipient {
    font-size: 0.875rem;
    color: hsl(var(--text));
    margin-bottom: 8px;
}

.history-status {
    font-size: 0.8rem;
}

.status-pending {
    background: hsl(var(--warning) / 0.1);
    color: hsl(var(--warning));
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Trial Features Styles */
.trial-cta {
    background: linear-gradient(135deg, hsl(var(--success) / 0.1), hsl(var(--primary) / 0.1));
    padding: 24px;
    border-radius: 12px;
    border: 2px solid hsl(var(--success) / 0.3);
    margin-top: 30px;
    text-align: center;
}

.trial-cta h3 {
    margin-bottom: 8px;
    color: hsl(var(--text));
}

.trial-cta p {
    color: hsl(var(--text-muted));
    margin-bottom: 16px;
}

.trial-link {
    color: hsl(var(--success));
    font-weight: 600;
    text-decoration: none;
}

.trial-link:hover {
    text-decoration: underline;
}

.trial-info {
    background: hsl(var(--surface));
    padding: 24px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    margin-bottom: 30px;
}

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

.benefit-item {
    text-align: center;
    padding: 20px;
    background: hsl(var(--background));
    border-radius: 8px;
    border: 1px solid hsl(var(--border));
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.benefit-item h4 {
    margin-bottom: 8px;
    color: hsl(var(--text));
}

.benefit-item p {
    color: hsl(var(--text-muted));
    font-size: 0.9rem;
}

.trial-form {
    background: hsl(var(--surface));
    padding: 24px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    margin-bottom: 30px;
}

.trial-terms {
    margin-bottom: 24px;
}

.trial-terms h4 {
    margin-bottom: 16px;
    color: hsl(var(--text));
}

.trial-terms ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.trial-terms li {
    margin-bottom: 8px;
    color: hsl(var(--text-muted));
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: hsl(var(--text));
    font-weight: 500;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: hsl(var(--primary));
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
}

.trial-token-result {
    background: hsl(var(--surface));
    padding: 30px;
    border-radius: 12px;
    border: 2px solid hsl(var(--success));
    margin-bottom: 30px;
    text-align: center;
}

.trial-token-result h3 {
    margin-bottom: 20px;
    color: hsl(var(--success));
}

.pricing-preview {
    background: hsl(var(--surface));
    padding: 24px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    margin-top: 30px;
}

.pricing-preview h4 {
    margin-bottom: 20px;
    color: hsl(var(--text));
    text-align: center;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.price-option {
    background: hsl(var(--background));
    padding: 20px;
    border-radius: 8px;
    border: 2px solid hsl(var(--border));
    text-align: center;
    transition: all 0.2s ease;
}

.price-option:hover {
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
}

.price-option.popular {
    border-color: hsl(var(--success));
    background: hsl(var(--success) / 0.05);
    position: relative;
}

.price-option.popular::before {
    content: "Populer";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--success));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-header {
    font-weight: 600;
    color: hsl(var(--text));
    margin-bottom: 8px;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 8px;
}

.price-details {
    font-size: 0.875rem;
    color: hsl(var(--text-muted));
}

.confess-id {
    font-weight: 600;
    color: hsl(var(--primary));
}

.confess-date {
    margin-left: auto;
}

.confess-message {
    color: hsl(var(--text));
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Tokens Table */
.tokens-table {
    background: hsl(var(--surface));
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    overflow: hidden;
}

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

.tokens-table th,
.tokens-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border));
}

.tokens-table th {
    background: hsl(var(--background));
    font-weight: 600;
    color: hsl(var(--text));
}

.tokens-table tr:last-child td {
    border-bottom: none;
}

.token-value code {
    padding: 4px 8px;
    background: hsl(var(--background));
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    border: 1px solid hsl(var(--border));
}

.coins-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-active {
    color: hsl(var(--success));
    font-weight: 600;
}

.status-inactive {
    color: hsl(var(--danger));
    font-weight: 600;
}

/* Login Container */
.login-container {
    max-width: 400px;
    margin: auto;
    padding: 40px 0;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.back-link {
    color: hsl(var(--text-muted));
    text-decoration: none;
    font-size: 0.875rem;
}

.back-link:hover {
    color: hsl(var(--primary));
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--text-muted));
}

.footer p {
    margin-bottom: 8px;
}

.footer a {
    color: hsl(var(--primary));
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 8px;
}

.admin-link,
.user-link {
    color: hsl(var(--text-muted));
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.admin-link:hover,
.user-link:hover {
    color: hsl(var(--primary));
}

/* User Dashboard Styles */
.user-info-card {
    background: hsl(var(--surface));
    padding: 30px;
    border-radius: 16px;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 6px -1px hsla(var(--shadow));
    margin-bottom: 30px;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.info-header h2 {
    margin: 0;
    color: hsl(var(--text));
}

.token-display {
    background: hsl(var(--background));
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--text-muted));
}

.balance-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.balance-info {
    flex: 1;
}

.balance-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.currency {
    font-size: 1.5rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.label {
    font-size: 1.1rem;
    color: hsl(var(--text-muted));
}

.balance-equivalent {
    color: hsl(var(--text-muted));
    font-size: 0.875rem;
}

.balance-equivalent p {
    margin: 2px 0;
}

.balance-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-active {
    background: hsl(var(--success) / 0.1);
    color: hsl(var(--success));
}

.status-low {
    background: hsl(var(--warning) / 0.1);
    color: hsl(var(--warning));
}

/* Quick Actions */
.quick-actions {
    background: hsl(var(--surface));
    padding: 24px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    margin-bottom: 30px;
}

.quick-actions h3 {
    margin-bottom: 16px;
    color: hsl(var(--text));
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Activity Section */
.activity-section {
    background: hsl(var(--surface));
    padding: 24px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    margin-bottom: 30px;
}

.activity-section h3 {
    margin-bottom: 20px;
    color: hsl(var(--text));
}

.empty-activity {
    text-align: center;
    padding: 40px 20px;
}

.empty-activity .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-activity h4 {
    margin-bottom: 8px;
    color: hsl(var(--text));
}

.empty-activity p {
    color: hsl(var(--text-muted));
    margin-bottom: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: hsl(var(--background));
    border-radius: 8px;
    border: 1px solid hsl(var(--border));
}

.activity-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--primary) / 0.1);
    border-radius: 8px;
}

.activity-content {
    flex: 1;
}

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

.activity-title {
    font-weight: 600;
    color: hsl(var(--text));
}

.activity-date {
    font-size: 0.875rem;
    color: hsl(var(--text-muted));
}

.activity-recipient {
    font-size: 0.875rem;
    color: hsl(var(--text-muted));
    margin-bottom: 4px;
}

.activity-cost {
    font-size: 0.875rem;
    color: hsl(var(--danger));
    font-weight: 600;
}

/* Top Up Info */
.topup-info {
    background: hsl(var(--surface));
    padding: 24px;
    border-radius: 12px;
    border: 1px solid hsl(var(--border));
    margin-bottom: 30px;
}

.topup-info h3 {
    margin-bottom: 12px;
    color: hsl(var(--text));
}

.topup-info p {
    color: hsl(var(--text-muted));
    margin-bottom: 16px;
}

.price-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: hsl(var(--background));
    border-radius: 8px;
    border: 1px solid hsl(var(--border));
    min-width: 120px;
}

.price-coins {
    font-weight: 600;
    color: hsl(var(--text));
    margin-bottom: 4px;
}

.price-amount {
    font-size: 0.875rem;
    color: hsl(var(--success));
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .admin-actions {
        justify-content: center;
    }
    
    .confess-form,
    .login-form,
    .add-token-form {
        padding: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .token-input-group {
        flex-direction: column;
    }
    
    .tokens-table {
        overflow-x: auto;
    }
    
    .confess-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .confess-date {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .confess-form,
    .login-form,
    .add-token-form {
        padding: 20px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin: 0 auto;
    }
}
