/* SatoshiFi Admin Distribution Table Styles */

/* Admin Badge */
.admin-badge {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Upload Section */
.upload-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.upload-zone {
    border: 2px dashed var(--satoshi-border);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--satoshi-light-gray);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--satoshi-orange);
    background: rgba(247, 147, 26, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-zone p {
    margin: 0.5rem 0;
    font-weight: 600;
    color: var(--satoshi-text);
}

.upload-zone small {
    color: var(--satoshi-dark-gray);
    font-size: 0.875rem;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: var(--satoshi-light-gray);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--satoshi-dark-gray);
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--satoshi-black);
}

/* Table Container */
.table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid var(--satoshi-border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table thead {
    background: var(--satoshi-light-gray);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--satoshi-text);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--satoshi-border);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--satoshi-border);
    color: var(--satoshi-text);
}

.data-table tbody tr:hover {
    background: var(--satoshi-light-gray);
}

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

.data-table code {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    background: var(--satoshi-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Preview */
.preview-summary {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--satoshi-light-gray);
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--satoshi-text);
}

/* Batch Actions */
.batch-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Info Message */
.info-message {
    padding: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%);
    border-left: 4px solid #2196f3;
    border-radius: 0.5rem;
}

.info-message p {
    margin: 0.5rem 0;
    color: var(--satoshi-text);
}

.info-message strong {
    color: #1976d2;
}

/* Header & Navigation for Admin Pages */
header {
    background: var(--satoshi-white);
    border-bottom: 2px solid var(--satoshi-border);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--satoshi-black);
}

.subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--satoshi-dark-gray);
    font-weight: 400;
    margin-top: 0.25rem;
}

nav {
    display: flex;
    gap: 0.5rem;
}

nav a {
    padding: 0.5rem 1rem;
    color: var(--satoshi-text);
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
    font-weight: 500;
}

nav a:hover {
    background: var(--satoshi-light-gray);
}

nav a.active {
    background: var(--satoshi-orange);
    color: var(--satoshi-white);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--satoshi-light-gray);
    border-radius: 0.5rem;
}

#userAddress {
font-family: 'Courier New', monospace;
font-size: 0.875rem;
color: var(--satoshi-text);
}

/* Card Component */
.card {
    background: var(--satoshi-white);
    border: 1px solid var(--satoshi-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card h2 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--satoshi-black);
}

/* Not Connected State */
.not-connected {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.not-connected .card {
    max-width: 400px;
    text-align: center;
}

.not-connected h2 {
    margin-bottom: 1rem;
}

.not-connected p {
    margin-bottom: 1.5rem;
    color: var(--satoshi-dark-gray);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--satoshi-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--satoshi-border);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--satoshi-orange);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--satoshi-dark-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }

    .batch-actions {
        flex-direction: column;
    }

    .batch-actions button {
        width: 100%;
    }

    .data-table {
        font-size: 0.875rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
}
