/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f4f7fc;
}

/* ---- LOGIN / SIGNUP PAGE ---- */
.login-container {
    background: white;
    padding: 40px;
    width: 450px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

h2 {
    margin-bottom: 20px;
    color: #333;
}

button {
    width: 100%;
}

#btn {
    position: relative;
    z-index: 2;
    overflow: hidden;
    vertical-align: middle;
    display: inline-block;
    border: none;
    text-transform: capitalize;
    text-align: center;
    background-color: #b68c5a;
    color: #fff;
    font-family: "Poppins", Sans-Serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 13px;
    min-width: 170px;
    border-radius: 5px;
    transition: .5s;
    text-decoration: none;
    transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
}

#btn:hover {
    background: #011c1a;
    color: #fff;
}

#btn::before {
    content: "";
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    width: 0%;
    background-color: #314e52;
    z-index: -1;
    transition: all 0.4s ease-out;
}

#btn::after {
    content: "";
    position: absolute;
    height: 100%;
    top: 0;
    width: 0%;
    right: 0;
    background-color: #314e52;
    z-index: -1;
    transition: all 0.4s ease-out;
}

#btn:hover::before {
    width: 51%;
    border-radius: 0;
}

#btn:hover::after {
    width: 50%;
    border-radius: 0;
}

p a {
    color: #b68c5a;
    font-weight: bold;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    height: 100vh;
    background: #011c1a;
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    padding-top: 50px;
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.sidebar h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: 15px 0 15px 0;
    transition: background-color 0.3s ease;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding-left: 25px; 
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: #b68c5a;
}

.sidebar ul li a.active {
    background-color: #b68c5a;
    color: #fff;
    padding-left: 32px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-weight: 600;
}

.preview-box {
    border: 1px solid #ccc;
    height: 200px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
}

#preview1 {
    background-image: url('/assets/img/layout1.jpg');
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
}

#preview2 {
    background-image: url('/assets/img/layout2.jpg');
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
}

#preview3 {
    background-image: url('/assets/img/layout3.jpg');
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

/* Modal Image */
.modal-content {
    max-height: fit-content;
    width: auto;
    max-width: fit-content;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Main Content Styles */
.main-content {
    margin-left: 270px;
    width: calc(100% - 270px);
    padding: 40px;
    background-color: #fff;
    transition: margin-left 0.3s ease;
}

header {
    display: flex;
    justify-content: right;
    align-items: center;
    margin-bottom: 20px;
}

.user {
    display: flex;
    color: #333;
    font-size: 18px;
}

.user p {
    margin-right: 15px;
    font-weight: 500;
    font-size: 15px;
    margin-top: 1.5px;
}

.user i {
    font-size: 19px;
    color: #2575fc;
}

.form-control {
    padding: 0.775rem .75rem !important;
}

/* Section Styles */
.section {
    display: none;
    margin-top: 30px;
    animation: fadeIn 0.6s ease-out;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

section form {
    display: flex;
    flex-direction: column;
}

section form input, section form textarea {
    padding: 15px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

section form input:focus, section form textarea:focus {
    border-color: #2575fc;
}

section form button {
    background-color: #2575fc;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

section form button:hover {
    background-color: #1e6dc4;
}

.remove-service-btn {
    position: relative;
    z-index: 2;
    overflow: hidden;
    vertical-align: middle;
    display: inline-block;
    border: none;
    text-transform: capitalize;
    text-align: center;
    background-color: red;
    color: #fff;
    font-family: "Poppins", Sans-Serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 13px;
    min-width: 170px;
    border-radius: 5px;
    transition: .5s;
    text-decoration: none;
    transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
}

#add-service-btn {
    position: relative;
    z-index: 2;
    overflow: hidden;
    vertical-align: middle;
    display: inline-block;
    border: none;
    text-transform: capitalize;
    text-align: center;
    background-color: #b68c5a;
    color: #fff;
    font-family: "Poppins", Sans-Serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 13px;
    min-width: 170px;
    border-radius: 5px;
    transition: .5s;
    text-decoration: none;
    transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
}

#add-service-btn:hover {
    background: #011c1a;
    color: #fff;
}

#add-service-btn::before {
    content: "";
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    width: 0%;
    background-color: #314e52;
    z-index: -1;
    transition: all 0.4s ease-out;
}

#add-service-btn::after {
    content: "";
    position: absolute;
    height: 100%;
    top: 0;
    width: 0%;
    right: 0;
    background-color: #314e52;
    z-index: -1;
    transition: all 0.4s ease-out;
}

#add-service-btn:hover::before {
    width: 51%;
    border-radius: 0;
}

#add-service-btn:hover::after {
    width: 50%;
    border-radius: 0;
}

.remove-team-btn {
    position: relative;
    z-index: 2;
    overflow: hidden;
    vertical-align: middle;
    display: inline-block;
    border: none;
    text-transform: capitalize;
    text-align: center;
    background-color: red;
    color: #fff;
    font-family: "Poppins", Sans-Serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 13px;
    min-width: 170px;
    border-radius: 5px;
    transition: .5s;
    text-decoration: none;
    transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
}

#add-team-btn {
    position: relative;
    z-index: 2;
    overflow: hidden;
    vertical-align: middle;
    display: inline-block;
    border: none;
    text-transform: capitalize;
    text-align: center;
    background-color: #b68c5a;
    color: #fff;
    font-family: "Poppins", Sans-Serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 13px;
    min-width: 170px;
    border-radius: 5px;
    transition: .5s;
    text-decoration: none;
    transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
}

#add-team-btn:hover {
    background: #011c1a;
    color: #fff;
}

#add-team-btn::before {
    content: "";
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    width: 0%;
    background-color: #314e52;
    z-index: -1;
    transition: all 0.4s ease-out;
}

#add-team-btn::after {
    content: "";
    position: absolute;
    height: 100%;
    top: 0;
    width: 0%;
    right: 0;
    background-color: #314e52;
    z-index: -1;
    transition: all 0.4s ease-out;
}

#add-team-btn:hover::before {
    width: 51%;
    border-radius: 0;
}

#add-team-btn:hover::after {
    width: 50%;
    border-radius: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
        width: calc(100% - 240px);
    }

    .search input {
        width: 200px;
    }

    .user i {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 100%;
        height: auto;
        /*position: relative;*/
        box-shadow: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .search input {
        width: 180px;
    }

    .user i {
        font-size: 22px;
    }

    #layout2, #layout3, #layout5, #layout6 {
        margin-top: 30px;
    }

    .modal-content {
        width: 60% !important;
    }
}
