﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.narrow {
    max-width: 400px;
    margin-left: auto;
    margin-right: 0;
    display: inline-block;
}

.right {
    float: right;
}

.flag-1 {
    color: green;
    font-weight: 700;
}

.flag-2 {
    color: darkorange;
    font-weight: 700;
}

.flag-3 {
    color: darkorange;
    font-weight: 700;
}

.flag-4 {
    color: red;
    font-weight: 700;
}

/*-----------------------------------------------*/
[data-quantity] {
    position: relative;
    width: 100%;
    max-width: 11rem;
    padding: 0;
    margin: 30px 0;
    border: 0;
}

    [data-quantity] legend {
        display: none;
    }

    [data-quantity] input {
        font-size: 18px;
        height: 4rem;
        padding: 0 4rem;
        border-radius: 2rem;
        border: 0;
        background: #fff;
        color: #222;
        box-shadow: 0 10px 65px -10px rgba(0, 0, 0, 0.25);
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        font-weight: lighter;
    }

        [data-quantity] input:focus {
            outline: none;
            box-shadow: 0 5px 55px -10px rgba(0, 0, 0, 0.2), 0 0 4px #3fb0ff; /* Allows border radius on focus */
        }

        [data-quantity] input[type=number]::-webkit-inner-spin-button,
        [data-quantity] input[type=number]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        [data-quantity] input[type=number] {
            -moz-appearance: textfield;
        }

    [data-quantity] button {
        position: absolute;
        width: 2.8rem;
        height: 2.8rem;
        top: 0.6rem;
        display: block;
        padding: 0;
        margin: 0;
        border: 0;
        background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="50"><path d="M17 25h16M67 25h16M75 17v16" fill="none" stroke="rgb(59,69,66)" stroke-width="1.5px" stroke-linecap="round" stroke-linejoin="round" /></svg>') no-repeat 0 0;
        background-size: 5.6rem 2.8rem;
        overflow: hidden;
        white-space: nowrap;
        text-indent: 100%;
        border-radius: 1.4rem;
        cursor: pointer;
        transition: opacity 0.15s;
        opacity: 0.5;
    }

        [data-quantity] button:active {
            background-position-y: 1px;
            box-shadow: inset 0 2px 12px -4px #c5d1d9;
        }

        [data-quantity] button:focus {
            outline: none;
        }

        [data-quantity] button:hover {
            opacity: 1;
        }

        [data-quantity] button.sub {
            left: 0.6rem;
        }

        [data-quantity] button.add {
            right: 0.6rem;
            background-position-x: -2.8rem;
        }
/*-----------------------------------------------*/
.tooltipmy {
    position: relative;
    display: flow;
}

    .tooltipmy:hover {
        background-color: #007bff;
        color: white;
    }

    /* Tooltip text container */
    .tooltipmy .tooltiptextmy {
        visibility: hidden;
        width: 320px;
        background: linear-gradient(to bottom, #fafafa 0%, #f2f2f2 100%);
        color: #333;
        text-align: left;
        padding: 12px 15px;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        position: absolute;
        z-index: 100;
        bottom: 130%;
        left: -150px;
        opacity: 0;
        transition: opacity 0.25s ease, transform 0.25s ease;
        font-weight: normal;
        font-size: 13px;
        line-height: 1.6;
        border: 1px solid #e6e6e6;
        border-left: 4px solid #0069d9;
        transform: translateY(10px);
    }

        /* Arrow for the tooltip */
        .tooltipmy .tooltiptextmy::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -8px;
            border-width: 8px;
            border-style: solid;
            border-color: #f2f2f2 transparent transparent transparent;
            filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
        }

    /* Show the tooltip on hover */
    .tooltipmy:hover .tooltiptextmy {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        width: 320px;
    }

/* For mobile screens */
@media (max-width: 576px) {
    .tooltipmy .tooltiptextmy {
        width: 240px;
        left: -110px;
    }

    .tooltipmy:hover .tooltiptextmy {
        width: 240px;
    }
}
/*-------------------contact US modal----------------------------*/
/* Modal Styles */
.contact-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    background-color: white;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    z-index: 15;
    transition: all 0.3s ease-in-out;
}

    .contact-modal.minimized {
        width: 300px;
        height: 40px;
    }

.contact-header {
    padding: 10px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    font-size: large;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.contact-body {
    padding: 15px;
    display: none;
}

.contact-modal-form-group {
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#contact-modal-submit-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

    #contact-modal-submit-button:hover {
        background-color: #0056b3;
    }

.contact-modal-toggle-button {
    cursor: pointer;
    font-size: 18px;
}

#successMessage {
    display: none; /* Initially hidden */
    position: fixed; /* Overlay on the entire screen */
    top: 85%; /* Vertical center */
    left: 85%; /* Horizontal center */
    transform: translate(-50%, -50%); /* Center the message perfectly */
    font-size: 20px; /* Make the text larger */
    color: green; /* Make the text green */
    background-color: rgba(255, 255, 255, 0.8); /* Light background to improve visibility */
    padding: 10px 20px; /* Add some padding */
    border-radius: 5px; /* Optional rounded corners */
    z-index: 9999; /* Ensure it is above other elements */
}

/* Transition effect for smooth opening/closing */
.contact-modal:not(.minimized) {
    width: 20%;
}

.contact-modal.minimized {
    height: auto;
}

/* navagation panel */

.active-link {
    background-color: #eef5fc; /* Soft pastel blue for a clean highlight */
    color: #0d6efd !important; /* Bootstrap primary blue for professional contrast */
    border-radius: 16px; /* Very soft, pill-like edges for a premium look */
    font-weight: 600; /* Medium bold to subtly emphasize the active link */
    padding: 8px 16px; /* Balanced padding for comfortable clickability */
    transition: all 0.3s ease-in-out; /* Smooth transition for hover effects */
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.05); /* Light shadow for depth */
}

    .active-link:hover {
        background-color: #dfeaf5; /* Slightly deeper highlight on hover */
        color: #0a58ca !important; /* Deeper blue for interactive feedback */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08); /* Slightly stronger shadow on hover */
    }

.user-link {
    color: #0d6efd; /* Bootstrap primary blue */
    font-weight: 600; /* Emphasized but not too bold */
    text-transform: capitalize; /* Makes it look polished */
    padding: 8px 14px; /* Balanced padding for comfort */
    transition: color 0.3s ease-in-out;
}

    .user-link:hover {
        color: #0a58ca; /* Darker blue on hover for feedback */
        text-decoration: none; /* No underline for a clean look */
    }

.logout-btn {
    background-color: transparent; /* Keeps it subtle, blends with navbar */
    color: #dc3545; /* Bootstrap "danger" red for logout clarity */
    font-weight: 600; /* Slight emphasis */
    border: none; /* Removes button border */
    padding: 6px 12px; /* Adjusted for a clean appearance */
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

    .logout-btn:hover {
        color: white; /* White text for better contrast */
        background-color: #dc3545; /* Turns into a real button on hover */
        border-radius: 6px; /* Soft rounded corners */
    }


/* General Navbar Styling */
.navbar-nav .nav-link {
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
}

    /* Username Styling */
    .navbar-nav .nav-link.text-primary {
        color: #0056b3 !important; /* A rich professional blue */
        font-weight: 600;
    }

        .navbar-nav .nav-link.text-primary:hover {
            background-color: rgba(0, 86, 179, 0.1); /* Subtle background on hover */
            color: #003d80 !important; /* Slightly darker blue on hover */
            text-decoration: none;
        }

    /* Register & Login Links */
    .navbar-nav .nav-link.text-success {
        color: #28a745 !important; /* Professional green */
        font-weight: 500;
    }

        .navbar-nav .nav-link.text-success:hover {
            background-color: rgba(40, 167, 69, 0.1);
            color: #1e7e34 !important;
        }

/* Logout Button */
.navbar-nav .btn-link {
    color: rgba(255, 255, 255) !important; /* Soft white with slight transparency */
    background-color: rgb(151, 218, 133); /* Muted red with opacity */
    border: 1px solid rgb(174, 200, 50, 0.30); /* Subtle border */
    padding: 6px 14px;
    border-radius: 8px; /* Softer edges */
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

    .navbar-nav .btn-link:hover {
        background-color: rgba(200, 50, 50, 0.7); /* Slightly deeper red on hover */
        border: 1px solid rgba(200, 50, 50, 0.5);
        text-decoration: none;
        transform: translateY(-1px);
    }

/* Tooltip Styling */
/* Tooltip Styling */
.tutorial-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8) !important; /* was 0.9 on desktop */
    color: white;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    max-width: 280px;
    white-space: normal;
    word-wrap: break-word;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.3s ease-in-out;
    z-index: 1000;
    text-align: center;
    transform: translateY(-10px);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

    /* Fade in tooltip */
    .tutorial-tooltip.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* SVG Arrow Layer */
.tooltip-arrow-svg {
    position: absolute;
    z-index: 999;
    pointer-events: none;
}

    /* Arrow Transitions */
    .tooltip-arrow-svg line,
    .tooltip-arrow-svg polygon {
        transition: opacity 0.3s ease-in-out;
    }

/* Mobile-friendly tooltip styling */
@media (max-width: 767px) {
    .tutorial-tooltip {
        /* Make tooltips more compact on mobile */
        max-width: 200px;
        font-size: 12px;
        padding: 8px 10px;
        background: rgba(0, 0, 0, 0.9) !important; /* Darker background for mobile */
    }

        /* Improve tooltip visibility on mobile */
        .tutorial-tooltip.visible {
            z-index: 1001; /* Ensure tooltips are always on top */
        }

    /* Add this if you want to make the tooltip text more readable on mobile */
    .tooltip-text {
        line-height: 1.4;
    }

    /* Make sure tooltips don't overlap with the navbar toggle button */
    .tutorial-tooltip:first-child {
        margin-top: 60px;
    }
}

/* Enhanced arrow visibility for mobile */
.tooltip-arrow-svg line,
.tooltip-arrow-svg polygon {
    stroke-width: 2px;
}

/* Add a subtle outline to tooltips to help them stand out against various backgrounds */
.tutorial-tooltip {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Mobile-only overrides */
@media (max-width: 767px) {
    /* Make the arrow line & arrowhead more visible (orange color) */
    .tooltip-arrow-svg line,
    .tooltip-arrow-svg polygon {
        stroke: rgba(255, 152, 0, 0.5) !important; /* slightly transparent orange stroke */
        fill: rgba(255, 152, 0, 0.5) !important; /* slightly transparent orange fill */
        stroke-width: 3px; /* thicker line for visibility */
    }

    .tooltip-arrow-svg {
        z-index: 1002 !important; /* Higher than the tooltip's z-index */
    }

    /* Improve tooltip spacing on mobile */
    .tutorial-tooltip {
        margin-bottom: 10px;
    }
}