/* assets/css/style.css */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables for Easy Theme Management --- */
:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --dark-color: #212529;
    --sidebar-bg: #111827;
    --sidebar-link: #9ca3af;
    --sidebar-link-hover: #ffffff;
    --light-bg: #f9fafb;
    --text-color: #4b5563;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* --- General Body Styles --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
}

/* --- User-Facing Pages (Login, Refer, Go) --- */
.user-form-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
}

.user-form-container .card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* --- Admin Panel Layout --- */
/* Find and replace the old .sidebar and .main-content rules with this */

/* --- Admin Panel Layout --- */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    transition: all 0.3s;
}

.sidebar .nav-link {
    color: var(--sidebar-link);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.sidebar .nav-link i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: var(--dark-color);
    color: var(--sidebar-link-hover);
}

.main-content {
    transition: margin-left 0.3s;
}

/* Responsive Styles using Media Query */
@media (min-width: 992px) {
    /* On large screens, push content to the right */
    .main-content {
        margin-left: 260px;
    }
}

.main-content {
    margin-left: 260px;
    padding: 2rem;
}

/* --- Admin Dashboard Cards & Chart --- */
.stat-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card h2 {
    font-weight: 700;
}

.stat-card i {
    opacity: 0.6;
}

#clicksChart {
    max-height: 350px;
}

/* --- GO.PHP NEW STYLES --- */
.go-page-container {
    min-height: 100vh;
    background: #f4f7f6;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    padding: 2rem 1rem;
}

.go-card {
    background-color: #ffffff;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.02);
    overflow: hidden; /* Ensures footer corners are rounded */
}

.go-card-header {
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
    background-color: #ffffff;
}

.go-card-header .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    background-color: #e6f3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.go-card-header .bi-wallet2 {
    font-size: 2.5rem;
    color: #0d6efd;
}

.go-card-header h2 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.go-card-header .amount {
    color: #198754;
    font-weight: 700;
}

.go-card-body {
    padding: 0 2rem 2rem 2rem;
}

.go-card .form-control-lg {
    padding: 0.9rem 1rem;
    font-size: 1.1rem;
}

.go-card .btn-primary {
    padding: 0.9rem;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out;
}

.go-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.go-steps-footer {
    background-color: #f8f9fa;
    padding: 2rem;
    border-top: 1px solid #dee2e6;
}

.go-steps-footer h5 {
    font-weight: 600;
}

.go-steps-footer .list-group-item {
    padding: 0.75rem 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: flex-start;
}

.go-steps-footer .step-icon {
    margin-right: 1rem;
    color: #0d6efd;
    font-size: 1.2rem;
    margin-top: 2px;
}

/* --- REFER.PHP RESPONSIVE ICON STYLES --- */
.campaign-icon-container {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e6f3ff;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.campaign-icon-container i {
    font-size: 2.8rem;
    color: #0d6efd;
}

.campaign-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}