* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.login-form h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

.error-message {
    color: #e74c3c;
    margin-top: 15px;
    padding: 10px;
    background: #ffeaea;
    border-radius: 5px;
    display: none;
}

.dashboard {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

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

.logout-btn {
    background: #e74c3c;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

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

.dashboard-stats {
    margin-bottom: 30px;
}

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

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    opacity: 0.9;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: bold;
}

.stat-card.delivered .stat-value {
    color: #2ecc71;
}

.stat-card.pending .stat-value {
    color: #f39c12;
}

.messages-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.messages-section h3 {
    margin-bottom: 20px;
    color: #333;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
}

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

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

.messages-table th {
    background: #667eea;
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
}

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

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

.messages-table .status.delivered {
    background: #d4edda;
    color: #155724;
}

.messages-table .status.pending {
    background: #fff3cd;
    color: #856404;
}

.messages-table .status.failed {
    background: #f8d7da;
    color: #721c24;
}

.messages-table .message-text {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-table .cost {
    font-weight: bold;
    color: #e74c3c;
    font-family: 'Courier New', monospace;
}

.messages-table .timestamp {
    font-size: 12px;
    color: #666;
}

.no-messages {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.pagination-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: #5a6fd8;
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
}

.page-number:hover {
    background: #f0f0f0;
}

.page-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .pagination-container {
        padding: 15px;
    }
    
    .pagination-info {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
    }
    
    .page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.deposits-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.deposits-section h3 {
    margin-bottom: 20px;
    color: #333;
}

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

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

.deposits-table th {
    background: #28a745;
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
}

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

.deposits-table .amount {
    font-weight: bold;
    color: #28a745;
    font-family: 'Courier New', monospace;
}

.deposits-table .timestamp {
    font-size: 12px;
    color: #666;
}

.stat-card.balance .stat-value {
    color: #28a745;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .dashboard {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card .stat-value {
        font-size: 24px;
    }
    
    .messages-table {
        font-size: 14px;
    }
    
    .messages-table th,
    .messages-table td {
        padding: 8px;
    }
}