:root {
    --primary-color: #ff6f00;
    --secondary-color: #ffd700;
    --accent-color: #28a745;
    --text-color: #333333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body, html {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
}



.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s, background-color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.navbar-toggler {
    border-color: white;
    margin-right: 15px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar .container {
    padding-left: 0;
    padding-right: 0;
}

.navbar-nav.ml-auto .nav-item button {
    margin: 0 8px;
    padding: 8px 12px;
}

.hero-section {
    margin: 20px auto;
    max-width: 800px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.search-bar {
    margin: 15px 0;
}

.search-bar .form-control {
    border-radius: 25px 0 0 25px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.search-bar .btn-accent {
    border-radius: 0 25px 25px 0;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.country-selector {
    width: 150px;
    border-radius: 10px;
    padding: 8px;
    font-size: 0.9rem;
    margin-left: 10px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 25px 0 15px;
    color: var(--primary-color);
    text-align: center;
}

.coupon-card, .offer-card {
    background: var(--card-bg);
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    transition: transform 0.3s;
    overflow: hidden;
}

.coupon-card:hover, .offer-card:hover {
    transform: translateY(-3px);
}

.coupon-card .card-body, .offer-card .card-body {
    padding: 12px;
    text-align: center;
}

.coupon-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.coupon-code {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    background: #fff3e0;
    padding: 6px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.card-text {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.website {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.terms {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.offer-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.coin-reward {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #e65c00;
}

.btn-accent {
    background-color: var(--accent-color);
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.btn-accent:hover {
    background-color: #218838;
}

.card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.copy-btn, .share-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.copy-btn i, .share-btn i {
    margin-right: 4px;
}

.share-btn {
    background-color: var(--accent-color);
}

.share-btn:hover {
    background-color: #218838;
}

#shareModal .btn-success {
    background-color: #25D366;
}

#shareModal .btn-success:hover {
    background-color: #1EBE57;
}

#shareModal .btn-info {
    background-color: #1DA1F2;
}

#shareModal .btn-info:hover {
    background-color: #0D8BDB;
}

#shareModal .btn-warning {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

#shareModal .btn-warning:hover {
    background-color: #ffca2c;
}

.carousel-img {
    height: 350px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 6px 10px;
}

.carousel-caption h5 {
    font-size: 1rem;
    font-weight: 600;
}

.carousel-caption p {
    font-size: 0.8rem;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 12px;
}

.carousel-indicators li {
    background-color: var(--primary-color);
}

.carousel-indicators .active {
    background-color: var(--secondary-color);
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    text-align: center;
    margin-top: 30px;
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    padding: 20px;
    background-color: var(--bg-color);
}

.sidebar-content {
    max-width: 250px;
    margin: 0 auto;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.wallet-card {
    margin-bottom: 15px;
    border: 1px solid var(--primary-color);
}

.wallet-card .card-body {
    padding: 10px;
    text-align: center;
}

.wallet-card h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.wallet-card p {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.bottom-nav .nav-item {
    color: white;
    text-align: center;
    font-size: 0.9rem;
    text-decoration: none;
    flex: 1;
}

.bottom-nav .nav-item i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.bottom-nav .nav-item:hover {
    background-color: #e65c00;
}

/* Wallet Section */
.wallet .coupon-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.wallet .card-body {
    background-color: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
}

.wallet .card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Modal Styles */
.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modal-content {
    border-radius: 10px;
}

.custom-tab {
    color: #333 !important;
    background: var(--bg-color);
    border: 1px solid #ddd;
    transition: all 0.3s ease-in-out;
}

.custom-tab.active {
    background: #007bff !important;
    color: #fff !important;
    font-weight: bold;
    border-color: #007bff;
}

.custom-tab:hover {
    background: #e9ecef;
    color: #007bff !important;
}

.btn-with-icon {
    
    align-items: center;
}

.btn-with-icon i {
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .main-content {
        padding-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        margin: 15px;
        padding: 15px;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section p {
        font-size: 0.9rem;
    }
    .search-bar .form-control {
        font-size: 0.85rem;
    }
    .search-bar .btn-accent {
        font-size: 0.85rem;
    }
    .country-selector {
        width: 120px;
        font-size: 0.85rem;
    }
    .coupon-img {
        height: 80px;
    }
    .coupon-code {
        font-size: 1.2rem;
    }
    .card-text {
        font-size: 1rem;
    }
    .website {
        font-size: 0.85rem;
    }
    .terms {
        font-size: 0.85rem;
    }
    .offer-card .card-title {
        font-size: 1.2rem;
    }
    .coin-reward {
        font-size: 1rem;
    }
    .btn-primary, .btn-accent {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
    .copy-btn, .share-btn {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    .card-buttons {
        flex-direction: column;
        gap: 6px;
    }
    .carousel-img {
        height: 150px;
    }
    .carousel-caption {
        display: none;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .navbar-brand {
        font-size: 1.5rem;
        margin-left: 15px;
    }
    .navbar-toggler {
        margin-right: 10px;
    }
    .navbar-nav.ml-auto .nav-item button {
        margin: 5px 5px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    .coupon-card, .offer-card {
        margin-bottom: 10px;
    }
}

/* Admin Specific Styles */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Admin Section Titles */
.admin-container .section-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    text-align: left;
}

/* Admin Forms */
.deal-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.deal-form .form-group {
    margin-bottom: 1.5rem;
}

.deal-form label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
}

.deal-form .form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.deal-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 111, 0, 0.25);
}

/* Admin Deal Cards */
.deal-card {
    height: 100%;
    background: var(--card-bg);
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 1.5rem;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.deal-img {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.deal-card .card-body {
    padding: 1.5rem;
}

.deal-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.deal-card .card-text {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Admin Buttons */
.deal-card .btn-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.deal-card .btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.deal-card .btn i {
    margin-right: 0.5rem;
}

.deal-card .btn-warning {
    background-color: var(--warning-color);
    border: none;
    color: #000;
}

.deal-card .btn-danger {
    background-color: var(--danger-color);
    border: none;
    color: white;
}

/* Admin Modal */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 1rem 1.5rem;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}

/* Admin Alerts */
.alert {
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
}

.alert-dismissible .close {
    padding: 1rem 1.5rem;
}

/* Admin Carousel Improvements */
.admin-container .carousel {
    margin-bottom: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-container .carousel-img {
    height: 400px;
    object-fit: cover;
}

.admin-container .carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 1.5rem;
    bottom: 2rem;
}

.admin-container .carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Responsive Admin Styles */
@media (max-width: 768px) {
    .admin-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .deal-form {
        padding: 1rem;
    }

    .admin-container .carousel-img {
        height: 300px;
    }

    .admin-container .carousel-caption {
        position: relative;
        background: var(--primary-color);
        border-radius: 0;
    }

    .deal-card .btn-group {
        flex-direction: column;
    }

    .deal-card .btn {
        width: 100%;
    }
}


/* Custom Toggle Switch */
.custom-control-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #ff6200; /* Vibrant orange */
    border-color: #ff6200;
}
.custom-control-switch .custom-control-label::before {
    background-color: #ccc;
    border-color: #ccc;
}
.custom-control-switch .custom-control-label::after {
    background-color: #fff;
}
.custom-control-switch .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(255, 98, 0, 0.25);
}

/* Tab Styling */

.nav-tabs .nav-link {
    color: #fc7e04 !important;
    font-weight: 500;
     background-color: #ff730;
}
.nav-tabs .nav-link.active {
    color: #ff6200;
    border-bottom: 2px solid #ff6200;
    background-color: #ff730;
}
.nav-tabs .nav-link:hover {
    color: #ff6200;
}

.carousel-img {
    border: 2px solid #f28c38; /* Orange border */
    border-radius: 8px;
}
.carousel-caption {
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black for readability */
    border-radius: 4px;
    padding: 10px;
}
/* Carousel spacing */
#extensionCarousel {
    margin-top: 20px; /* Space below navbar */
    margin-bottom: -10px; /* Space above hero section */
}

/* Footer styling */
footer {
    background: #1a1a1a; /* Dark background to match navbar */
    color: #fff;
    padding: 20px 0;
    border-top: 2px solid #f28c38; /* Orange accent */
}
footer .form-control.country-selector {
    background: #333;
    color: #fff;
    border: 1px solid #f28c38; /* Orange border */
    border-radius: 4px;
    padding: 5px;
    font-size: 14px;
}
footer .form-control.country-selector:focus {
    border-color: #e07b30; /* Darker orange on focus */
    box-shadow: 0 0 5px rgba(242, 140, 56, 0.5);
}
footer .row {
    margin: 0;
}
/* Transaction History Modal Styling */
.modal-dialog.modal-lg {
    max-width: 90%;
    width: 800px; /* Adjust as needed */
}

.transaction-table-container {
    max-height: 400px; /* Limits table height to ~7 rows */
    overflow-y: auto; /* Enables vertical scrolling */
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

.table-responsive {
    margin-bottom: 0;
}

.table.transaction-table {
    margin-bottom: 0;
    font-size: 0.9rem; /* Smaller font for better fit */
}

.table.transaction-table th,
.table.transaction-table td {
    padding: 8px; /* Reduced padding for compactness */
    vertical-align: middle;
    white-space: nowrap; /* Prevent text wrapping in cells */
    overflow: hidden;
    text-overflow: ellipsis; /* Truncate long text */
    max-width: 200px; /* Limit cell width */
}

.table.transaction-table th {
    background-color: #f8f9fa; /* Light header background */
    position: sticky;
    top: 0;
    z-index: 10; /* Keep header visible while scrolling */
}

.table.transaction-table tbody tr:hover {
    background-color: #e9ecef; /* Hover effect for rows */
}

/* Mobile-specific styles */
@media (max-width: 576px) {
    .modal-dialog.modal-lg {
        max-width: 95%;
        margin: 10px auto; /* Adjust margin for mobile */
    }

    .table.transaction-table {
        font-size: 0.8rem; /* Smaller font on mobile */
    }

    .table.transaction-table th,
    .table.transaction-table td {
        padding: 6px; /* Further reduce padding */
        max-width: 120px; /* Smaller cell width on mobile */
    }

    .table.transaction-table th:nth-child(3),
    .table.transaction-table td:nth-child(3) {
        max-width: 100px; /* Smaller Details column on mobile */
    }

    /* Stack table cells for very small screens */
    .table.transaction-table {
        display: block;
        overflow-x: auto;
    }

    .table.transaction-table thead,
    .table.transaction-table tbody,
    .table.transaction-table tr {
        display: block;
    }

    .table.transaction-table th,
    .table.transaction-table td {
        display: block;
        text-align: left;
        max-width: 100%;
        white-space: normal; /* Allow wrapping on mobile */
    }

    .table.transaction-table th {
        position: static; /* Disable sticky header on mobile */
    }
}

