/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ---- Reboot ---- */

.modal-body {
    padding: 3rem;
}
.modal-footer {
    border-top: none;
}
.modal-content {
    border-radius: 10px;
}

.btn-primary i:not(.fa-spin), .btn-secondary i:not(.fa-spin),
.btn-primary .material-symbols-rounded, .btn-secondary .material-symbols-rounded {
    margin-right: 8px;
}

h1 {
    font-weight: bolder;
}

.main-footer {
    border: none;
    margin-left: 200px !important;
    text-align: center;
}

.btn-primary:hover {
    color: white;
    background-color: #1e9999;
    border-color: #1e9999;
}

ul {
    padding-left: 0;

    li {
        color: #343a40;
        line-height: 1.7;
        list-style-type: none !important;

        a {
            color: #343a40;
            padding-left: 0;
            transition: all 0.3s;
        }
    }
    li:hover a {
        color: #33CCCC;
        padding-left: 10px;
    }
}

.modal-header .close>span {
    font-size: unset;
}

/* ---- Main ---- */

* {
    font-family: 'Lexend', sans-serif;
    font-size: .85rem;
}
.content-wrapper {
    margin-left: 200px !important;
    background: none;
    padding-top: 2rem;
    padding-left: 4rem;
    padding-right: 4rem;
}
.main-navbar {
    z-index: 99;
    position: fixed;
    top: 10px;
    right: 15px;
    width: 30px;
    text-align: center; 

    a {   
        color: grey;
    }
}
.text-muted {
   color: #afb1b3 !important;
}
.font-lg {
    font-size: 1rem;
}
.font-xl {
    font-size: 1.3rem;
}
.sidebar-title {
    margin-top: 2rem;
    padding: 0 1rem;
    color: grey;
}
.content-header h1 {
    font-weight: bolder;
    margin-bottom: 1.5rem;
}

.top-left {
    position: absolute;
    top: 20px;
    left: 30px;
}
.top-right {
    position: absolute;
    top: 20px;
    right: 30px;
}
.cursor-pointer {
    cursor: pointer;
}


.material-symbols-rounded {
    font-size: 1.3rem;
}
.big-icon {
    font-size: 3.5rem !important;
}

#login_page {
    background: url('../img/black_and_white.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.card {
    box-shadow: none;
}

.card-grey {
    background-color: #F8F8F8;
    border-radius: 8px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);

    .card-body {
        padding: 2.5rem;
    }
}

.card-blue {
    background-color: rgba(51, 204, 204, 0.09);
    border-radius: 8px;
    padding: 1.5rem;

    h3, h4 {
        color: #33CCCC;
        font-weight: 600;
        font-size: 1.3rem;
    }
    .material-symbols-rounded {
        color: #33CCCC;
        font-size: 1.8rem;
    }
}
.card-black {
    background-color: #343a40;
    border-radius: 8px;
    padding: 1.5rem;

    .material-symbols-rounded {
        color: #33CCCC;
    }
    .card-black-header .material-symbols-rounded {
        font-size: 1.8rem;
    }
    * {
        color: white;
    }
    h3, h4 {
        color: #33CCCC;
        font-weight: 600;
        font-size: 1.3rem;
    }
    hr {
        border-color: grey;
    }

    .std-links {
        * {       
            color: white;     
            transition: all 0.2s ease-in-out;
        }    
        &:hover * {
            color: rgb(51, 204, 204) !important;
        }
    }
}

.std-links {
    display: flex;
    align-items: center;
    color: #343a40;
    transition: all 0.2s ease-in-out;

    &:hover {
        color: rgb(51, 204, 204);
    }

    .material-symbols-rounded {
        margin-right: 8px;
    }
}

.slide-effect {
    transition: padding-left 0.2s ease-in-out;
    padding-left: 0;
}
.slide-effect:hover {
    padding-left: 10px;
}

.columns-gap {
    column-gap: 25px;
}

.status-badge {
    padding: 5px 8px;
    text-align: center;
    border-radius: 5px;
    font-size: 0.7rem;
    width: auto;

    &.danger {
        background-color: rgba(170, 0, 0, 0.5);
    }
    &.warning {
        background-color: rgba(255, 136, 0, 0.5);
    }
    &.info {
        background-color: rgba(51, 204, 204, 0.5);
    }
    &.success {
        background-color: rgba(0, 137, 73, 0.5);
    }
}


/* ---- Forms ---- */

input:-internal-autofill-selected {
    background: none !important;
    background-color: unset !important;
}

.form-control {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #afb1b3;
}

/* ---- Sidebar ---- */
.main-sidebar {
    width: 200px !important;

    .sidebar-logo {
        max-height: 25px;
        width: auto;
        margin: 0 auto 5px;
        object-fit: contain;
    }
    .brand-text {
        font-size: 1.2rem;
    }
    .nav-link {
        padding: .5rem 1rem;
        display: flex;
        align-items: center;
    }

    .sidebar {
        padding: 0 1rem;

        .nav-link p {
            margin-left: 10px !important;
        }
        .nav-item.active .nav-link {
            background-color: rgba(51, 204, 204, 0.15);
            color: #33CCCC;
            font-weight: bold;
            box-shadow: none;
        }
    }
}

body:not(.sidebar-collapse) .sidebar .nav-link, 
body:not(.sidebar-collapse) .main-sidebar.sidebar-focused .nav-link, 
body.sidebar-collapse .main-sidebar:hover .nav-link, 
body.sidebar-collapse .main-sidebar.sidebar-focused .nav-link {
    text-align: left;
}
body.sidebar-collapse .sidebar .nav-link {
    text-align: center;
}

/* Toggle Switch Styles */
.view-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 20px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 0.17rem;
    bottom: 0.17rem;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #33CCCC;
}
input:focus + .slider {
    box-shadow: 0 0 1px #33CCCC;
}
input:checked + .slider:before {
    transform: translateX(26px);
}
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}
.toggle-label {
    font-weight: 500;
    color: #495057;
}

/* Pipeline View Styles */
.pipeline-container {
    display: none;
    overflow-x: auto;
    padding: 20px 0;
}
.pipeline-columns {
    display: flex;
    gap: 20px;
    min-width: max-content;
    padding: 0 20px;
}
.pipeline-column {
    min-width: 300px;
    max-width: 350px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.pipeline-column-header {
    background: #33CCCC;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}
.pipeline-column-header.won {
    background: #28a745;
}
.pipeline-column-header.lost {
    background: #dc3545;
}
.pipeline-column-header.unallocated {
    background: #6c757d;
}
.project-count {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: normal;
}
.pipeline-cards {
    min-height: 200px;
}
.project-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}
.project-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.project-card-header {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}
.project-card-tags {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 10px;
}
.project-card-actions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}
.project-card-actions .btn {
    padding: 2px 6px;
    font-size: 12px;
}
.empty-column {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* Table View Styles */
    .table-view-container {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pipeline-columns {
        flex-direction: column;
        gap: 15px;
    }

    .pipeline-column {
        min-width: auto;
        max-width: none;
    }
}

/* ---- Fullpage Menu ---- */

#fullmenu {
    z-index: 199;
    padding: 0;
    margin: 0;
    margin-left: 200px !important;
    position: fixed;
    width: calc(100vw - 200px);
    height: 100vh;
    background-color: white;
    left: -100vw;
    transition: left 0.3s ease-in-out;

    &.open {
        left: 0;
    }

    .wrapper {
        margin: 5% 15% 0;


        .material-symbols-rounded {
            font-size: 2rem;
            margin-bottom: 10px;
            color: #33CCCC;
        }
    }

    h1 {
        color: #33CCCC;
        font-weight: bold;
    }
    hr {
        border-color: lightgrey;
        border-width: 2px;
        width: 60%;
        display: inline-flex;
        justify-self: start;
    }
    
    .fullmenu-section {
        display: none;
    }
    .menu-item-description {
        font-size: 0.7rem;
        text-align: justify;
    }

    .fullmenu-card {
        padding: 25px 30px;
        border-radius: 10px;
        transition: all 0.15s ease-in-out;
        top: 8px;
        cursor: pointer;
        
        h5 {
            color: #343a40;
            font-weight: 600;
            transition: color 0.15s ease-in-out;
        }

        &:hover, &.active {
            background-color: rgba(51, 204, 204, 0.09);
            top: 0px;
        
            h5 {
                color: #33CCCC;
            }
        }
    }
}

@media (max-width: 1800px) {
    #fullmenu .wrapper {
        margin: 5% 8% 0;
    }
    #fullmenu ul:not(.one-column) {
        column-count: 2;
    }
}

.fullmenu-logo {
    max-height: 50px;
    width: auto;
    display: inline;
    margin-right: 20px;
}
.logo-text {
    font-size: 2rem;
    color: black;
}




