﻿/* _ClientLayout.css - Modern UI Redesign for Layout */

/* --- Variables (Consistent with clientHome.css) --- */
:root {
    --primary-color: #00796B; /* Teal */
    --primary-dark: #004D40; /* Darker Teal */
    --accent-color: #FFC107; /* Amber/Gold for stars, etc. */
    --light-bg: #F8F9FA; /* Light Gray Background */
    --card-bg: #FFFFFF; /* White Card Background */
    --text-color: #343A40; /* Dark Gray Text */
    --light-text: #6C757D; /* Muted Text */
    --border-color: #E0E0E0; /* Light Gray Border */
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08); /* Soft Shadow */
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15); /* Deeper Shadow on Hover */
    --border-radius: 0.75rem; /* Rounded Corners */
}

/* --- Base Body Styles (from clientHome.css for consistency) --- */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    user-select: none; /* Disable text selection for aesthetics, consider accessibility */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    font-weight: 600;
}

p {
    color: var(--light-text);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

/* Ensure consistent margin/padding reset */
body, h1, h2, h3, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Navbar Styling --- */
/* --- Navbar Styling --- */
.navbar {
    background-color: var(--card-bg); /* Use card background for a clean look */
    padding: 1rem 0; /* Adjusted padding, about 16px top/bottom */
    position: sticky; /* Sticky navbar */
    top: 0;
    z-index: 1000; /* Ensure it stays on top */
    box-shadow: var(--shadow-light); /* Soft shadow for a modern raised effect */
    border-bottom-left-radius: var(--border-radius); /* Rounded bottom corners */
    border-bottom-right-radius: var(--border-radius);
    transition: all 0.3s ease-in-out; /* Smooth transitions for potential changes */
}

.navbar-brand {
    font-size: 1.8rem; /* Responsive font size */
    font-weight: 700; /* Bolder font weight */
    color: var(--primary-dark) !important; /* Set brand color, important to override Bootstrap */
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center; /* Align logo and text */
    gap: 8px; /* Space between logo and text */
}

    .navbar-brand:hover {
        color: var(--primary-color) !important; /* Change color on hover */
        transform: translateX(3px); /* Subtle shift effect */
    }

    .navbar-brand img {
        height: 35px; /* Adjust logo size */
        object-fit: contain; /* Ensure logo fits without distortion */
    }

.navbar-nav .nav-item .nav-link {
    font-size: 1.05rem; /* Slightly larger font size for links */
    color: var(--text-color); /* Dark text color for links */
    padding: 0.7rem 1.1rem; /* Refined padding for each link */
    border-radius: 0.5rem; /* Slightly rounded link backgrounds */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; /* Smooth hover effect */
    font-weight: 500; /* Medium font weight */
}

    .navbar-nav .nav-item .nav-link:hover {
        background-color: var(--light-bg); /* Light Gray background on hover */
        color: var(--primary-color); /* Primary color text on hover */
        transform: translateY(-2px); /* Slight lift effect */
    }

/* Active Link Highlight */
.navbar-nav .nav-item.active .nav-link {
    color: white !important; /* White text for active link */
    background-color: var(--primary-color); /* Primary color background */
    font-weight: 600; /* Bolder for active */
    box-shadow: 0 4px 10px rgba(0, 121, 107, 0.3); /* Subtle shadow for active link */
}

    .navbar-nav .nav-item.active .nav-link:hover {
        background-color: var(--primary-dark); /* Darker primary on hover for active */
        transform: translateY(0); /* No lift on active hover */
    }

/* Dropdown menu styling */
.navbar-nav .dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
}

.navbar-nav .dropdown-item {
    color: var(--text-color);
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: var(--light-bg);
        color: var(--primary-color);
    }

/* Navbar Toggler Styling (for mobile) */
.navbar-toggler {
    border: none; /* No border for the toggler button */
    padding: 0.25rem 0.75rem;
    transition: all 0.3s ease;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(0, 121, 107, 0.25); /* Focus ring with primary color */
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 77, 64, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Current Time Display */
#current-time {
    color: var(--light-text); /* Muted text for time */
    font-weight: 500;
    font-size: 0.95rem;
    padding-left: 15px; /* Space from last nav item */
}




/* Adjust main content padding based on sticky navbar height */
.main-content {
    padding-top: 90px; /* Adjust this value based on your navbar height (e.g., ~70px + some spacing) */
}


/* --- Footer Styling --- */
.footer {
  

    padding: 30px 0;
    text-align: center;
    font-size: 0.95rem;
    margin-top: 50px; /* Space above footer */
}

    .footer p {
        margin-bottom: 0;
        color: inherit; /* Inherit color from parent */
    }

/* --- Internet Connection Status Bar --- */
#internet-status {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-weight: bold;
    display: none; /* Keep only this */
    z-index: 1051;
    font-size: 1.1rem;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    color: antiquewhite;
    background-color: transparent;
}


    #internet-status i {
        font-size: 1.6rem; /* Larger icon */
        line-height: 1; /* Vertically align icon */
    }

    /* Specific colors for status */
    #internet-status.connected {
        background-color: #28a745; /* Green for connected */
    }

    #internet-status.disconnected {
        background-color: #dc3545; /* Red for disconnected */
    }

/* --- Black Screen Overlay (for Print Screen prevention) --- */
#blackScreenOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    z-index: 99999; /* Very high z-index to cover everything */
    display: none; /* Hidden by default */
    opacity: 0.8; /* Slightly transparent black */
    transition: opacity 0.3s ease-out; /* Smooth fade effect */
}


/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) { /* Medium devices and down */
    .navbar {
        padding: 15px 0; /* Less padding on smaller screens */
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

        .navbar-brand img {
            height: 30px;
        }

    .navbar-nav .nav-item .nav-link {
        padding: 8px 15px; /* Adjust padding for smaller screens */
        text-align: center;
    }



    #current-time {
        margin-top: 10px; /* Space above time when navbar collapses */
        padding-left: 0;
        text-align: center;
        width: 100%; /* Full width for time display */
    }

    #alertContainer {
        top: 70px; /* Adjust alert position for smaller screens */
        right: 10px;
        left: 10px; /* Center alert on smaller screens */
        max-width: none; /* Allow it to take full width */
    }
}



#goTopBtn {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 1052;
    font-size: 20px;
    border: none;
    outline: none;
    background: linear-gradient(to right, #00c6ff, #0072ff); /* 🌈 Gradient background */
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

    #goTopBtn:hover {
        background: linear-gradient(to right, #0072ff, #00c6ff); /* reverse on hover */
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }









#connectPopup {
    z-index: 1060 !important;
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0 !important;
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
    font-size: 1.4rem;
}

.suggestion-box {
    min-height: 100px;
    resize: vertical;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px;
    font-family: inherit;
    transition: all 0.3s ease;
}

    .suggestion-box:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        outline: none;
    }

.btn-connect {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-connect:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    }

.btn-skip {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
    border-radius: 12px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn-skip:hover {
        background: #6c757d;
        color: white;
        transform: translateY(-1px);
    }

.connect-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.connect-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .connect-icon:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

.facebook {
    background: #1877f2;
}

.whatsapp {
    background: #25D366;
}

.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.telegram {
    background: #0088cc;
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 20px;
    }
}

@media (max-width: 991px) {
    #goTopBtn {
        bottom: 90px;
        right: 16px;
        z-index: 6000;
    }
}
