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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
    color: #333;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #1a1a2e;
    color: white;
    padding: 20px;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-header h2 {
    color: #e94560;
    margin-bottom: 30px;
}

.nav-links {
    list-style: none;
    flex: 1;
}

.nav-links li a {
    display: block;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: background 0.2s;
}

.nav-links li a:hover {
    background: #16213e;
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid #16213e;
}

.btn-logout {
    display: block;
    padding: 10px;
    color: #e94560;
    text-decoration: none;
    text-align: center;
}

/* Content */
.content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
}

h1 {
    margin-bottom: 20px;
    color: #1a1a2e;
}

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

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.stat-card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #1a1a2e;
}

/* Cards */
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 20px;
    color: #1a1a2e;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e94560;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    background: #eee;
    color: #333;
    transition: background 0.2s;
}

.btn:hover {
    background: #ddd;
}

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

.btn-primary:hover {
    background: #d63851;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

tr:hover {
    background: #f8f9fa;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-new { background: #e3f2fd; color: #1565c0; }
.badge-calling { background: #fff3e0; color: #ef6c00; }
.badge-interested { background: #e8f5e9; color: #2e7d32; }
.badge-rejected { background: #fce4ec; color: #c62828; }
.badge-no_answer { background: #f3e5f5; color: #6a1b9a; }
.badge-retry_scheduled { background: #fff8e1; color: #f57f17; }
.badge-tz_sent { background: #e0f7fa; color: #00838f; }
.badge-converted { background: #e8f5e9; color: #1b5e20; }
.badge-draft { background: #f5f5f5; color: #757575; }
.badge-active { background: #e8f5e9; color: #2e7d32; }
.badge-paused { background: #fff3e0; color: #ef6c00; }
.badge-archived { background: #f5f5f5; color: #9e9e9e; }
.badge-blocked { background: #ffcdd2; color: #b71c1c; }

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.actions input,
.actions select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 5px;
    margin-top: 20px;
    justify-content: center;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.pagination button.active {
    background: #e94560;
    color: white;
    border-color: #e94560;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    width: 400px;
}

.login-container h1 {
    color: #e94560;
    margin-bottom: 10px;
}

.login-container p {
    color: #666;
    margin-bottom: 20px;
}

.login-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 16px;
}

.login-container .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-error {
    background: #fce4ec;
    color: #c62828;
}

/* Chart */
.chart-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin-bottom: 15px;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.text-muted {
    color: #999;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 10px;
    }
    .sidebar-header h2,
    .nav-links li a {
        font-size: 0;
    }
    .content {
        margin-left: 60px;
        padding: 15px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
