/* General Styles */
body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

*::-webkit-scrollbar {
	max-width: 7px;
}

*::-webkit-scrollbar:vertical {
	height: 7px;
	max-width: 7px;
}

*::-webkit-scrollbar-thumb {
	background-color: #a5adba;
	border-radius: 2.5px;
	height: 50px;
}

*::-webkit-scrollbar-track {
	background: transparent;
	border-bottom-right-radius: 16px;
	display: none;
}

*::-webkit-scrollbar-thumb:vertical {
	height: 7px !important;
}

*::-webkit-scrollbar-thumb:hover {
	height: auto;
}

*::-webkit-scrollbar-thumb {
	transition: height 0.2s;
}

:root{
    --primary-background: linear-gradient(#FFB800, #fb6007);
    --secondary-background: #01484F;
    --secondary-bg-hover: #00343a;
    --white-bg: white;
    --primary: #01484F;
    --secondary: #00343a;
}

.container {
    display: flex;
    height: 100vh;
}

.content-wrapper{
    margin-top: 15px;
}

.chat-input button{
    width: unset;
}

.group-meta{
    margin-bottom: 15px;
}

.form-container h1{
    font-size: large;
}

.left-panel, .right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 20px; */
    overflow-y: auto;
}

.left-panel {
    width: 45%;
    background: var(--white-bg);
}

.right-panel {
    width: 55%;
    background: white;
}

.left-panel img {
    /* max-height: 80vh; */
    width: auto;
}

.right-panel .form-container {
    width: 80%;
    max-width: 400px;
    margin-top: auto;
    margin-bottom: auto;
}

h1 {
    font-size: 24px;
    color: var(--secondary-background);
}

p {
    font-size: 14px;
    color: #666;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select, textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #cccccc5d;
    background: white;
    border-radius: 4px;
    font-family: "Poppins", sans-serif;
    transition: all ease-in-out 350ms;
}
select{
    width: 100% !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus, textarea:focus {
    border: 1px dashed #00343a;
    outline: none;
}
button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: var(--secondary-background);
    color: white;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    margin: 10px 0;
}

button:hover {
    background-color: var(--secondary-bg-hover);
}

.google-btn {
    background-color: #db4437;
}

.google-btn:hover {
    background-color: #c23321;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

a {
    color: var(--secondary-background);
    text-decoration: none;
}


i {
    margin-right: 5px;
}

/* Dashboard Styles */
.dashboard {
    display: flex;
    height: 100vh;
}

nav{
    width: 100%;
}

#sidebar {
    width: 54px; /* Initial width */
    transition: width 0.3s; /* Smooth transition for width */
    overflow-x: hidden; /* Hide overflowing content */
    overflow-y: auto;
}
.nav-text {
    opacity: 0; /* Initially hidden */
    display: none !important; /* Initially hidden */
    transition: opacity 0.3s; /* Smooth transition for opacity */
}
.nav-text.show {
    display: inline !important; /* Display text when sidebar is open */
    opacity: 1; /* Fully visible */
}

.sidebar {
    width: 250px;
    background: linear-gradient(21deg, rgba(1,72,79,1) 0%, rgba(0,118,129,1) 49%, rgba(8,94,102,1) 100%);
    color: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: left;
    overflow-y: auto;
}

.sidebar h2 a {
    line-height: normal;
    margin-left: 15px;
    color: white;
    text-decoration: none;
}
.logo-title {
    height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-title span{
    display: none;
}
.nav-togl{
    font-size: x-large;
}
.sidebar hr{
    width: 90%; border: 1px solid rgba(255, 255, 255, 0.151);
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

.sidebar nav ul li {
    width: 100%;
    margin: 10px 0;
}

.sidebar nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 4px;
    text-align: left;
}
.sidebar nav ul p {
    color: white;
    display: block;
    padding: 10px;
    border-radius: 4px;
    text-align: left;
}
.sidebar nav ul li a:hover {
    background-color: var(--secondary-bg-hover);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar nav ul li a.active {
    background-color: var(--secondary-bg-hover);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.signout-btn {
    margin-top: auto;
    background-color: #e74c3c;
}

.signout-btn:hover {
    background-color: #c0392b;
}

.main-content {
    flex: 1;
    padding: 20px;
    background-color: white;
    height: calc(100vh - 40px);
    overflow-y: scroll;
    transition: display 0.3s;
}
.main-content section{
    overflow-y: auto;
    overflow-x: hidden;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    margin-top: 10px;
    margin-right: -20px;
    margin-left: -20px;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 15px;
    /* max-height: calc(100vh - 150px); */
}

.auth-cont-head{
    display: flex;
    align-items: center;
    gap: 10px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-top: -20px;
    margin-left: -20px;
    margin-right: -20px;
    /* background: linear-gradient(21deg, rgba(1,72,79,1) 0%, rgba(3,99,108,1) 49%, rgba(0,159,175,1) 100%); */
    background: rgb(250, 250, 250);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.096);
    color: var(--secondary-background);
    border-radius: 10px;
    height: 40px;
}
.header-text{
    font-size: x-large;
}
.header-text i{
    margin-right: 10px;
    cursor: pointer;
}

.overview {
    margin-top: 20px;
    height: fit-content;
    background: rgb(250, 250, 250);
    border-radius: 10px;
    padding: 10px;
    padding-left: 70px;
    padding-right: 30px;
    background-image: url('/assets/img/illustrations/rocket.png');
    background-blend-mode: soft-light;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overview-child{
    width: 80%;
    margin-top: auto;
}

.overview h2 {
    margin-bottom: 15px;
    margin-left: 20px;
}
.hero-details h2{
    margin-left: unset;
    /* line-height: 5px; */
    margin-bottom: 40px;
}
.hero-details span{
    font-size: larger;
}

.avatar{
    border-radius: 100%;
    width: 50px;
    height: 50px;
    background-color: #00343a;
    overflow: hidden;
    cursor: pointer;
}
.avatar img{
    width: auto;
    height: 50px;
}

.hero-details{
    border-left: 1px dashed rgba(128, 128, 128, 0.089);
    padding-left: 20px;
    padding-bottom: 30px;
}
.stats {
    display: flex;
    justify-content: left;
    vertical-align: unset;
    flex-wrap: wrap;
    gap: 15px;
}

.stat {
    background: #01494f15;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    flex: 1;
    min-width: 180px;
}

.quick-links {
    display: flex;
    margin-top: 20px;
}

.quick-link {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-wrap: nowrap;
    width: fit-content;
    flex: 1;
    text-decoration: none;
    margin-right: 20px;
    color: var(--secondary-background);
}

.quick-link-h2{
    border-right: 1px dashed var(--secondary-background);
    text-wrap: nowrap;
    padding: 0 20px 0 0;
    margin-right: 10px;
}
.quick-link:hover {
    background-color: var(--secondary-background);
    color: white;
}

@media (max-width: 768px) {
    .auth-cont-head .name{
        display: none;
    }
    .container {
        flex-direction: column;
    }

    .right-panel .form-container{
        margin: auto;
    }

    .left-panel, .right-panel {
        width: 100%;
    }
    .left-panel{
        display: none;
    }

    .right-panel {
        height: 100vh;
        padding: unset;
        overflow-y: auto;
    }

    /* .dashboard {
        flex-direction: column;
    } */

    .sidebar {
        width: calc(100vw - 20px) !important;
        height: 100% !important;
    }
    .overview{
        max-height: unset !important;
    }

    /* .main-content {
        width: 100%;
    } */

    .stats, .quick-links {
        flex-direction: column;
    }

    .stat{
        width: calc(100vw - 150px);
        margin: 10px 0;
    }
    .quick-link{
        width: calc(100vw - 80px);
        margin: 10px 0;
    }
    .quick-link-h2{
        border-right: unset;
    }

    /* Navigation */

    #sidebar {
        width: 100%; /* Full width on mobile */
        display: none; /* Initially hidden on mobile */
    }

    #sidebar.mobile-open {
        display: inline-table; /* Display inline table on mobile */
    }
    
    .nav-text {
        opacity: 1 !important; /* Initially hidden */
        display: inline !important; /* Initially hidden */
        transition: opacity 0.3s; /* Smooth transition for opacity */
    }
    .nav-text.show {
        display: inline !important; /* Display text when sidebar is open */
        opacity: 1; /* Fully visible */
    }
    .logo-title span{
        display: unset;
    }
}

/* Manage Orders */

.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh; 
     overflow-y: scroll; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #888;
    width: 50%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

fieldset{
    border: 1px dashed var(--secondary-background);
    border-radius: 5px;
    width: 100%;
}

.track-shipment fieldset{
    width: unset !important;
}
/* General styling for the table container */
section.manage-orders{
    overflow-x: scroll;
    box-shadow: unset;
}
section.manage-orders,
section.track-shipment {
padding: 10px;
}

table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
font-size: 18px;
text-align: left;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

thead {
background-color: #f4f4f4;
font-weight: bold;
}

thead th {
padding: 12px 15px;
border-bottom: 2px solid #dddddd;
}

tbody tr {
border-bottom: 1px solid #dddddd;
transition: background-color 0.3s;
}

tbody tr:hover {
background-color: #f1f1f1;
}

tbody td {
padding: 12px 15px;
border-bottom: 1px solid #dddddd;
}

tbody td .delete-btn {
background-color: #ff4d4d;
border: none;
padding: 8px 12px;
color: white;
font-size: 16px;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s;
}

tbody td .delete-btn:hover {
background-color: #e60000;
}

tbody td .view-btn {
background-color: #4da6ff;
border: none;
padding: 8px 12px;
color: white;
font-size: 16px;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s;
margin-right: 5px;
}

tbody td .view-btn:hover {
background-color: #0066cc;
}

tbody td .billing-btn {
background-color: #5cb85c;
border: none;
padding: 8px 12px;
color: white;
font-size: 16px;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s;
}

tbody td .billing-btn:hover {
background-color: #449d44;
}

@media (max-width: 768px) {
table {
font-size: 14px;
}


tbody, tr, td {
/* display: block; */
width: 100%;
}

tr {
margin-bottom: 15px;
}

td {
/* text-align: right; */
padding-left: 50%;
position: relative;
/*border: none;*/
}

td::before {
content: attr(data-label);
position: absolute;
left: 0;
width: 50%;
padding-left: 15px;
font-weight: bold;
text-align: left;
background-color: #f4f4f4;
}

tbody td:last-child {
text-align: right;
/* padding-left: 50%; */
}

tbody td .delete-btn {
padding: 6px 10px;
font-size: 14px;
}
section.manage-orders{
    /* overflow-x: scroll; */
    box-shadow: unset;
}
.modal-content{
    width: 80%;
}
}

.settings{
    max-height: calc(100vh - 150px) !important;
}

.settings form{
    width: 95%;
    margin-top: 10px;
    margin-bottom: 10px;
}


.modal-header{
    display: flex;
    justify-content: space-between;
}
.modal-header button{
    float: unset;
    width: unset;
}
.modal-body .form-group label{
    display: block;
}

.message {
    padding: 10px;
    margin-top: 10px;
    border: 1px solid transparent;
    border-radius: 5px;
}
.message-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.message-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}


.floating-alert {
    position: fixed;
    top: 20px;
    left: 0;
    text-wrap: wrap;
    margin: 10px;
    /* transform: translateX(-50%); */
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease, top 0.5s ease;
}

/* Show state */
.floating-alert.show {
    opacity: 1;
    top: 40px;
}

/* Different message types */
.floating-alert.error {
    background-color: #f44336; /* Red */
    color: white;
}

.floating-alert.success {
    background-color: #4CAF50; /* Green */
    color: white;
}

.floating-alert.info {
    background-color: #2196F3; /* Blue */
    color: white;
}


.alert {
    display: block;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    font-size: 1rem;
    line-height: 1.5;
}

.alert-success {
    background-color: #e3fde3;
}

.alert-danger {
    color: #721c24;                       /* Text color */
    background-color: #f8d7da;           /* Background color */
    border-color: #f5c6cb;                /* Border color */
}

.tagify{
    width: 100%;
    border-radius: 3px;
    margin: 10px 0 5px 0;
}

/* Loader styles */
#custom-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* Dims the screen */
    z-index: 9999; /* Ensures it stays on top */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The overlay */
.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dim effect */
}

/* Loader content */
.loader-content {
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Loader image with breathing effect */
.loader-image {
    width: 80px;
    /* height: 80px; */
    animation: breathe 1.5s ease-in-out infinite; /* Breathing effect */
}

/* Keyframes for breathing animation */
@keyframes breathe {
    0%, 100% {
        transform: scale(1); /* Default size */
    }
    50% {
        transform: scale(1.2); /* Expanded size */
    }
}
