/* General Styling */
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans+Semi+Expanded:wght@100;200;300;400;500;600;700;800;900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rajdhani:wght@300;400;500;600;700&family=Sora:wght@100..800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f3f3ff;
}

:root {
    --bg-color: #f3f3ff;
    --text-color: #2f1c6a;
    --sidebar-bg: #eae9fe;
    --menu-hover: #d7d6fe;
    --hover-text: #633aed;
    --primary-color: #5429e8;
    --table-heading-color: #d3d1ff;
    --white-text: #ffffff;
    --gray-text-color: #6b7280;
    --table-border: 1px solid #e7e7e7;
}

/* Splash Screen Styling */
a {
    text-decoration: none;
}

.splash-screen {
    height: 100vh;
    background-color: var(--bg-color);
}

.splash-logo {
    width: 250px;
    height: auto;
    animation: logo-load 0.4s linear infinite alternate;
}

.splash-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
}

.splash-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--gray-text-color);
}

@keyframes logo-load {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(0.90);
    }
}

/* login */
.signup-text {
    color: var(--gray-text-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.text-primary {
    color: var(--primary-color) !important;
}

.signup-link {
    color: var(--hover-text);
    text-decoration: none;
    font-weight: 500;
}

.signup-link:hover {
    color: var(--primary-color);
}

/* SweetAlert2 Custom Styles */
.swal2-popup {
    font-family: 'Poppins', sans-serif;
}

.swal2-input {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 4px;
    font-size: 1.2em !important;
    text-align: center;
}

.swal2-title {
    color: var(--text-color) !important;
}

.swal2-html-container {
    color: var(--gray-text-color) !important;
}

.otp-input {
    width: 3rem;
    height: 3rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    color: #495057;
}

.btn-primary {
    background-color: var(--hover-text);
    border-color: var(--hover-text);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-dashed {
    background-color: var(--table-heading-color);
    border-color: var(--hover-text);
    border: 3px dashed var(--hover-text);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.-sm-btn {
    padding: 0.5rem .5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.resend-otp-btn, .logout-btn {
    color: var(--hover-text);
    text-decoration: none;
    cursor: pointer;
}
.btn-primary:disabled {
    background-color: var(--hover-text);
    border-color: var(--primary-color);
}

.form-container {
    background: var(--white-text);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.form-title {
    color: var(--text-color);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--gray-text-color);
    font-size: 0.95rem;
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.input-group-text {
    color: var(--hover-text);
    border-color: var(--sidebar-bg);
}

.form-control {
    border-color: var(--sidebar-bg);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--hover-text);
    box-shadow: 0 0 0 0.25rem rgba(99, 58, 237, 0.1);
}

.form-check-input:checked {
    background-color: var(--hover-text);
    border-color: var(--hover-text);
}

/* my service*/
/* My Services Page Styling */
/* Header Bar */
.header-bar {
    background-color: var(--white-text);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-inner {
    height: 40px;
}

/* Service Cards */
.content-div {
    margin-bottom: 90px;
}

.service-card {
    border: none;
    border-radius: 15px;
    background-color: var(--white-text);
    padding: 15px;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.card-text {
    font-size: 0.9rem;
    color: var(--gray-text-color);
    line-height: 1.4;
}

.view-details {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white-text);
    font-size: 0.9rem;
    padding: 8px;
    border-radius: 10px;
    border: none;
    transition: background-color 0.3s ease;
}

.view-details:hover {
    background-color: var(--hover-text);
}

.estimation {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Mobile Bottom Navbar */
.mobile-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--sidebar-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    border-top: var(--table-border);
    box-shadow: 0px -2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-navbar .nav-item {
    text-align: center;
    color: var(--gray-text-color);
    font-size: 0.8rem;
    text-decoration: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-navbar .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.mobile-navbar .nav-item.active {
    color: var(--primary-color);
}

.mobile-navbar .nav-item.active i {
    color: var(--primary-color);
}

/* status style */
.status {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
}

.status.pending {
    color: #fd8b02 !important;
    background: rgba(253, 139, 2, 0.1);
    border: 2px solid #fd8b02 !important;
}

.status.in-progress {
    color: #0578fa !important;
    background: rgba(5, 120, 250, 0.1);
    border: 2px solid #0578fa !important;
}

.status.completed {
    color: #02baab !important;
    background: rgba(2, 186, 171, 0.1);
    border: 2px solid #02baab !important;
}

.status.delivered {
    color: #4caf50 !important;
    /* Green shade for delivered */
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50 !important;
}


.status.archive {
    color: #e84343 !important;
    /* Red shade for archived */
    background: rgba(232, 67, 67, 0.1);
    /* Lighter red background */
    border: 2px solid #e84343 !important;
     word-wrap: break-word; /* Key change: Allow word breaks */
    display: inline-block; /* Helps with width and wrapping */
    max-width: 100%;
    text-align:center;
}
.status.returned {
    color: #9c27b0 !important; /* Purple shade for returned */
    background: rgba(156, 39, 176, 0.1); /* Light purple background */
    border: 2px solid #9c27b0 !important; /* Purple border */
}


/* skleton service card style */
.skeleton-card {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
    padding: 15px;
    background-color: var(--white-text);
    border-radius: 8px;
    opacity: 0.8;
}

.skeleton-text {
    background-color: #e0e0e0;
    height: 20px;
    margin: 8px 0;
    border-radius: 4px;
    animation: loading 1.5s infinite ease-in-out;
}

.skeleton-text:nth-child(1) {
    width: 80%;
}

.skeleton-text:nth-child(2) {
    width: 60%;
}

.skeleton-text:nth-child(3) {
    width: 90%;
}

@keyframes loading {
    0% {
        background-position: -100%;
    }

    100% {
        background-position: 100%;
    }
}

.skeleton-text {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

/* profile page */
.cover-image {
    position: relative;
    display: inline-block;
    width: 100%;
}

.cover-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #8E2DE280, #3702a170);
    /* Customize gradient colors */
    z-index: 1;
    pointer-events: none;
}

.cover-image img {
    position: relative;
    z-index: 0;
}

.profile-img-container {
    margin-top: -100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50px;
    border: 4px solid var(--hover-text);
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    /* Custom border color */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-img .first-name {
    font-size: 80px;
    font-weight: 500;
    color: var(--white-text);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    color: #502d3c;
    /* Primary color */
}

.card-text {
    font-size: 16px;
    color: #555;
}

.page-header {
    color: var(--text-color);
    text-align: center;
    padding: 2rem;
}

.contact-card {
    border: 1px solid var(--sidebar-bg);
    border-radius: 10px;
    background-color: var(--white-text);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-card h2 {
    color: var(--text-color);
}

.contact-card ul {
    list-style-type: none;
    padding: 0;
}

.contact-card li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.accordion-button {
    background-color: var(--sidebar-bg);
    color: var(--text-color);
    font-weight: 600;
    border: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: var(--text-color);
    background-color: var(--sidebar-bg);
}

.accordion-body {
    color: var(--gray-text-color);
}