.admin-h2 {
    padding: 10px;
}

.admin-h3 {
    padding-bottom: 10px;
}

.dashboard-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-stats > div {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 1rem 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.05);
    flex: 1;
    text-align: center;
}

.dashboard-stats p {
    font-size: 1.25rem;
    margin: 0;
}

#growthChart {
    max-width: 100%;
    height: auto !important;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
    margin-bottom: 2rem;
}

.subscribers-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.subscribers-table thead {
    background-color: #4a90e2;
    color: #fff;
}

.subscribers-table th, .subscribers-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    text-align: left;
}

.subscribers-table tbody tr:hover {
    background-color: #f1f7ff;
}

.btn {
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #4a90e2;
    color: white;
    margin-bottom: 10px;
}

.btn-primary:hover {
    background-color: #357abd;
}

.text-success {
    color: #28a745;
}

.mt-3 {
    margin-top: 10px;
    margin-bottom: 10px;
}

#message {
    font-weight: bold;
}

.logout-link {
    display: inline-block;
    margin-top: 2rem;
    color: black;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.logout-link:visited {
    color: #555;
    text-decoration: none !important;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  margin-bottom: 1rem;
}

@media (max-width: 650px) {
    .dashboard-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-stats > div {
        padding: 1rem;
        flex: unset;
        width: 100%;
        box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
    }

    .dashboard-stats p {
        font-size: 1.1rem;
    }

    .btn-primary {
        width: 70%;
        font-size: .90rem;
        padding: 0.75rem;
    }

    .admin-h3{
        font: .80rem;
    }

    .table-wrapper {
        max-width: 100%;
    }
    
    .subscribers-table {
        width: 100%;
        table-layout: fixed; /* makes columns fixed width */
        word-wrap: break-word; /* break long text */
    }
    
    .subscribers-table td, 
    .subscribers-table th {
        font-size: 0.5rem;
        padding: 0.4rem 0.6rem;
    }

    .admin-h2,
    .admin-h3 {
        padding-left: 10px;
        padding-right: 10px;
    }

    #growthChart {
        height: 200px !important;
    }
}