/* Default styles for light mode */


    

@media (prefers-color-scheme: light) {
    :root {
        --primary-blue: #3498db;
        --secondary-blue: #2980b9;
        --light-blue: #e0f6ff;
        --gray-1: #f8f9fa;
        --gray-2: #e9ecef;
        --gray-3: #ced4da;
        --gray-4: #adb5bd;
        --gray-5: #6c757d;
        --gray-6: #495057;
        --text-color: #333;
    }
    
    body {
        background-color: var(--gray-1);
        color: var(--text-color);
    }

    .create-recipe-control {
        background-color: gray;
    }
    
    /* Header styles */
    header {
        background-color: var(--primary-blue);
        color: white;
    }
    
    /* Main content area */
    main {
        padding: 20px;
        background-color: var(--light-blue);
    }

    .reviews-header-wrap {
        border-bottom: 1px solid #666;
        border-top: 1px solid #666;
    }

    .review-wrap {
        border: 1px solid #bdbaba;
        background-color: #d8d8d8;
    }

    .recipe-wrap {
        color: #FFF !important;
    }

    .review-footer {
        background-color: #b6b6b6;
    }

    .review-table-active-reviewers, .review-table-top-flavours {
        background-color: #484848;
        color: #FFF;
    }

    .recipe-header-box, .recipe-name-recipe-page, .recipe-by-recipe-page, .recipe-description-recipe-page {
        color: #FFF !important;
    }

    .suggestion-box {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 9099;
        display: none;
        float: left;
        min-width: 160px;
        padding: 5px 0;
        margin: 2px 0 0;
        list-style: none;
        font-size: 14px;
        background-color: #333 !important;
        border: 1px solid #EEEEEE;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 4px;
        -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
        background-clip: padding-box;
        cursor: pointer;
        max-height: 300px;
        overflow: auto;
    }

    .flavourc {
        color: #FFF;
    }

    .search-flavour:hover {
        background-color: rgb(157, 157, 157);
        opacity: 1;
    }
    
    /* Button styles */
    button {
        background-color: var(--secondary-blue);
        color: white;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        transition: background-color 0.3s;
    }
    
    button:hover {
        background-color: var(--primary-blue);
    }
    
    /* Input fields */
    input[type="text"], 
    input[type="email"], 
    textarea {
        border: 1px solid var(--gray-3);
        padding: 8px;
        background-color: white;
    }
    
    /* Link styles */
    a {
        color: var(--primary-blue);
        text-decoration: none;
    }
    
    a:hover {
        text-decoration: underline;
        color: var(--secondary-blue);
    }
    
    /* Card or box component */
    .card {
        background-color: white;
        border: 1px solid var(--gray-3);
        border-radius: 4px;
        padding: 15px;
        margin-bottom: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    /* Footer styles */
    nav, footer {
        background-color: var(--gray-2);
        color: var(--gray-6);
        padding: 1rem;
    }

    #main-nav {
        border-bottom: 1px solid #c7c7c7
    }

    .page-wrapper {
        background-color: #ECECEC !important;
        box-shadow: 0 24px 40px rgba(0, 0, 0, .07), 0 10.8529px 24.1177px rgba(0, 0, 0, .0456112), 0 4.50776px 10.0172px rgba(0, 0, 0, .035), 0 1.63037px 3.62304px rgba(0, 0, 0, .0243888);
    }

    .supporter-badge {
        left: 62%;
        position: absolute;
        top: 64%;
    }

    footer .btn {
        color: #176e7c;
    }

    footer p {
        color: --text-color !important;
    }

    footer {
        border-top: 2px solid #D5D4D4;
    }

    p {
        color: #000000;
    }

    input, textarea {
        background-color: #f9f9f9;
        color: #333;
    }

    .carousel-caption {
        color: #FFF;
    }

    .carousel-caption p, .top-recipe-wrap p, .top-recipe-month p {
        color: #FFF;
    }
    
    .carousel-caption a, .top-recipe-wrap a, .top-recipe-month a {
        color:rgb(86, 171, 246);
    }

    .carousel-item img {
        opacity: 0.3;
    }

    .wrapper {
        background-color: #c9c9c9;
    }

    .hp-stats-box {
        background-color: #DDDDDD;
    }

    .info-bar {
        background-color: #DDDDDD;
    }

    .recipe-form-wrap {
        background-color: #C6C6C6;
    }

    .form-wrap {
        background-color: #CACACA;
    }

    .hp-latest-row {
        background-color: #c9c9c9;
        border-top: 1px solid #333;
    }

    #datatable_filter .form-control.form-control-sm {
        border: 1px solid #666;
        background-color: #212529;
        color: #FFF;
    }

    .dataTables_wrapper .dataTables_processing {
        z-index: 99999;
        background: #333;
        border: 1px solid black;
        border-radius: 3px;
        color: #FFF;
    }

    .top-recipe-month, .top-recipe-wrap {
        color: #FFFFFF;
    }

    .custom-select {
        background-color: #EEEEEE !important;
        color: #000000;
        border-color: #999999;
    }

    .custom-select:focus {
        color: #000;
    }

    .page-item.active .page-link {
        border-color: #999999;
        background-color: #EEEEEE;
        color: #000;
    }
    
    .page-link {
        border: 1px solid #999999;
        background-color: #EEEEEE;	
    }
    
    
    :root {
        --dt-row-stripe: 90,90,90;
      }
}

/* Styles for dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #2d2d2d; /* Dark background */
        color: #E1E1E1; /* Light text */
    }

    /* Header */
    header {
        background-color: #1F1F1F; /* Slightly lighter than body */
        color: #FFFFFF; /* White text */
    }

    .review-wrap span  {
        color: #FFF !important;
    }

    .page-wrapper {
        background-color: #343434;
        box-shadow: 0 24px 40px rgba(0, 0, 0, .07), 0 10.8529px 24.1177px rgba(0, 0, 0, .0456112), 0 4.50776px 10.0172px rgba(0, 0, 0, .035), 0 1.63037px 3.62304px rgba(0, 0, 0, .0243888);
    }

    button {
        background-color: #333333; /* Dark gray background */
        color: #E1E1E1; /* Light text */
    }

    .supporter-badge {
        left: 62%;
        position: absolute;
        top: 64%;
    }

    a {
        color: #75b5d4;
        text-decoration: none;
    }

    .suggestion-box {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 9099;
        display: none;
        float: left;
        min-width: 160px;
        padding: 5px 0;
        margin: 2px 0 0;
        list-style: none;
        font-size: 14px;
        background-color: #292929 !important;
        border: 1px solid #EEEEEE;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 4px;
        -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
        background-clip: padding-box;
        cursor: pointer;
        max-height: 300px;
        overflow: auto;
    }

    .reviews-header-wrap {
        border-bottom: 1px solid #666;
        border-top: 1px solid #666;
    }

    .recipes-header-wrap {
        border-bottom: 1px solid #666;
        border-top: 1px solid #666;
    }

    .review-wrap {
        border: 1px solid #666;
        background-color: #484848;
    }

    .review-footer {
        background-color: #333;
    }

    .review-table-active-reviewers, .review-table-top-flavours {
        background-color: #484848;
        color: #FFF;
    }

    table thead tr th:nth-child(-n+3) {
        border-bottom: 2px solid #1b1b1b; /* Adjust color and thickness as needed */
    }

    .flavourc {
        color: #fffefe;
    }

    .search-flavour:hover {
        background-color: rgb(100, 100, 100);
        opacity: 1;
    }

    /* Example for input fields */
    input, textarea {
        background-color: #2D2D2D; 
        color: #E1E1E1; /* Light text */
    }

    select {
        border: 1px solid #000 !important;
    }

    .custom-select {
        background-color: #212529 !important;
        color: #FFF;
        border-color: #333;
    }

    /* Navigation */
    nav, footer {
        background-color: #1F1F1F!important; 
    }

    #main-nav {
        border-bottom: 2px solid #000000;
    }


    .navbar {
        background-color: #f8f9fa; /* Light gray background */
    }


    .navbar-brand:hover, .nav-link:hover {
        color: #2980b9; /* Blue on hover */
    }


    footer {
        border-top: 1px solid #000;
    }

    footer .btn {
        color: #666 !important;
    }

    footer .btn:hover {
        color: #333 !important;
    }

    hr {
        border-top: 1px solid #333;
    }
    

    /* Main Content */
    main {
        background-color: #1A1A1A; /* Dark charcoal */
    }

    table {
        color: #FFF;
    }

    .table thead th {
        border-bottom: 1px solid #666;
    }
    
    .table-bordered th {
        border: 1px solid #666;
    }

    table.table-bordered.dataTable {
        color: #FFF;
    }

    table#recipe-table, table#recipe-table-two, table#recipe-table-update, table#one-shot-table, table#recipe-flavour-table, table#cost-table {
        color: #FFF;
    }	

    tr.instash td.flavour-name-td, tr.instash td.flavml, tr.instash td.flavper {
        color: #FFF;
    }

    table.dataTable tbody>tr.selected, table.dataTable tbody>tr>.selected {
        background-color: #134;
    }
    
    
    table.dataTable tbody td.select-checkbox:before, table.dataTable thead th.select-checkbox:before {
        background-color: #FFF;
        border: 1px solid black;

    }

    .page-item.active .page-link {
        border-color: #999;
        background-color: #121212;
    }
    
    .page-link {
        border: 1px solid #999;
        background-color: #333;	
    }
        
    
    table.dataTable thead .sorting:before, table.dataTable thead .sorting_asc:before, table.dataTable thead .sorting_desc:before, table.dataTable thead .sorting_asc_disabled:before, table.dataTable thead .sorting_desc_disabled:before, table.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:after, table.dataTable thead .sorting_desc:after, table.dataTable thead .sorting_asc_disabled:after, table.dataTable thead .sorting_desc_disabled:after {
        color: #FFF !important;
    }

    .table-striped tbody tr:nth-of-type(odd) {
        background-color: rgba(0,0,0,.50);
    }

    button:hover {
        background-color: #444444; /* Slightly lighter on hover */
    }

    .hp-flavour-row {
        background-color: #333;
    }

    #stone-table {
        color: #FFF;
    }

    .comment-textarea {
        border: 1px solid #666;
    }
    
    .border-bottom {
        border-bottom: 1px solid #666 !important;
    }
    
    /* Inputs */
    input, textarea {
        background-color: #2D2D2D; /* Dark gray */
        color: #E1E1E1; /* Light gray text */
    }
    
    /* Footer */
    footer {
        background-color: #1F1F1F; /* Dark gray */
        color: #D1D1D1; /* Light gray text */
    }
    
    /* For elements that need to stand out */
    .highlight {
        background-color: #4A4A4A; /* Medium gray */
        color: #FFFFFF; /* White text */
    }

    .card {
        border: 1px solid #666;
    }
    
    .card-body, .card-footer {
        background-color: #333;
    }
    
    /* Scrollbar (for modern browsers) */
    ::-webkit-scrollbar {
        width: 12px;
    }
    
    ::-webkit-scrollbar-track {
        background: #2D2D2D; 
    }
    
    ::-webkit-scrollbar-thumb {
        background: #555; 
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #666; 
    }

    .topics-list {
        background-color: #121212 !important;
    }

    .hp-latest-row{
        background: #201d1d !important;
        border-top: 1px solid #000000;
    }
    
    .wrapper {
        background-color: #191919;
    }

    .filter-wrapper {
        background-color: #4a4a4a;
    }

    .create-recipe-control {
        background-color: #212529;
    }
    
    .info-bar {
        background: #252525;
    }

    .flavour-note-box {
        background: #333;
        border: 1px solid #ccc;
    }

    .recipe-form-wrap {
        background: #3b3b3b;
    }

    .form-wrap {
        background-color: #3e3e3e;
    }

    .modal-content {
        background-color: #212121;
    }

    .recipe-page-header {
        background-color: #3b3b3b;
    }

    .hp-stats-box {
        background-color: #252525;
    }

    .affiliate-row {
        background-color: #201d1d !important;
    }

    .hp-slider-wrap, .hp-top-recipe, .hp-top-user {
        background-color: #333;	
    }

    .form-control, .custom-file-label, textarea {
        background-color: #303539;
        border: 1px solid #111;
        color: #FFF;
    }

    #datatable_filter .form-control.form-control-sm {
        border: 1px solid #666;
        background-color: #212529;
        color: #FFF;
    }

    .dataTables_wrapper .dataTables_processing {
        z-index: 99999;
        background: #333;
        border: 1px solid black;
        border-radius: 3px;
        color: #FFF;
    }
    
}



/**********************************************************************************************************/


