/* dashboard.css - Styling for ClickReels Ads Dashboards */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    
    color: #2c3e50;
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: #34495e;
}


li {
    font-size: 1.2rem;
    font-weight: bold;
    color: #27ae60;
}





.container {
    max-width: 1200px;
    margin: 0 auto;
}


/* Dashboard cards */

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-weight: 700;
    margin-bottom: 10px;
}

.card .stat-value {
    font-size: 4.2rem;
    font-weight: bold;
    color: #27ae60;
}

.card .stat-date {
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.05);
}

table th,
table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #ecf0f1;
    font-weight: 600;
    color: #2c3e50;
}

table tr:nth-child(even) {
    background-color: #fafafa;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: background-color 0.3s ease;
    color: white;
    background-color: #2980b9;
    text-decoration: none;
}

.btn:hover,
.btn:focus {
    background-color: #1f5e8a;
    outline: none;
}

.btn-danger {
    background-color: #c0392b;
}

.btn-danger:hover {
    background-color: #922b21;
}

/* Forms */

form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #34495e;
}

form input[type="text"],
form input[type="number"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

form input[type="text"]:focus,
form input[type="number"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form textarea:focus,
form select:focus {
    border-color: #2980b9;
    outline: none;
}

/* Alerts */

.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error,
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    table th {
        display: none;
    }
    table td {
        position: relative;
        padding-left: 50%;
        border: none;
        border-bottom: 1px solid #ddd;
    }
    table td::before {
        position: absolute;
        top: 12px;
        left: 15px;
        width: 45%;
        white-space: nowrap;
        font-weight: bold;
        content: attr(data-label);
        text-align: left;
        color: #34495e;
    }
}
