/* Set the background color to a dark gray, color to light gray and default font size */

body {
    font-size: 16px;
    height: 100vh;
    background-color: #000000 !important;
}

.container-fluid {
    height: 100%;
}

.main-column {
    display: flex;
    flex-direction: column;
    justify-content: left;
    padding: 0;
}

body.sidebar-expanded .main-content {
    padding-left: 225px !important;
    transition: padding-left 0.5s;
}

body:not(.sidebar-expanded) .main-content {
    padding-left: 70px !important;
    transition: padding-left 0.5s;
}

.icon-sidebar {
    fill: white;
    transition: ease .4s;
}

.icon-sidebar:hover {
    transition: ease .4s;
    fill: #e8c867;
}

.icon {
    height: 22px;
    width: 22px;
}

.icon-white {
    fill: white;
}

.button-icon {
    height: 22px;
    width: 22px;
}



.main-content {
    color: white;
    padding-top: 64px;
    height: 100%;
    flex: 1 1 0;
    min-width: 0;
}

h1,
h2 {
    font-size: 20px;
    font-weight: bold;
}

h3 {
    font-size: 16px;
}

.sign-in-section {
    background-color: #171717;
    border-radius: 7px;
    padding: 80px;
    margin-top: 3vw;
    color: white;
}

.sign-in-logo {
    width: 70%;
    margin-top: 4vw;
}

.picto {
    font-size: 7rem;
    margin: 50px;
    color: #E4E5F1;
}

.picto:hover {
    font-size: 7rem;
    margin: 50px;
    color: #ffffff;
}

.card {
    background-color: #2a2a2a;
    color: #E4E5F1;
    border: 1px solid white;
}


a {
    text-decoration: none;
}

/* Table style */
.table {
    --bs-table-bg: #171717;
    --bs-table-color: #E4E5F1;
}

/* Font awesome show/edit style */
.fa-eye,
.fa-pen-to-square {
    color: white;
}

.btn {
    padding: .5em;
    border-radius: 15px;
    border: solid 2px;
    font-weight: bold;
    transition: all .4s;
    margin-bottom: 1em;
    margin-top: 1em;
}

.btn:hover{
    transition: all .4s;
    background: none;

}

.btn-global {
    padding: .5em;
    border-radius: 15px;
    font-weight: bold;
    background-color: #ffffff;
    border: 1px solid white;
    color: black;
    fill: black;
    transition: all .4s;
    margin-bottom: 1em;
    margin-top: 1em;
}

.btn-global:hover {
    background-color: #000000;
    color: rgb(255, 255, 255);
    fill: white;
    transition: all .4s;
}

.btn-delete{
    transition: all .4s;
    border: solid 1px rgb(161, 3, 3);
    background: rgb(168, 0, 0);
    color: rgb(223, 223, 223);
    font-size: 1.5em;
    padding: .2em .5em;
    border-radius: 15px;
}

.btn-delete:hover{
    transition: all .4s;
    border: solid 1px rgb(100, 1, 1);
    background: rgb(119, 1, 1);
}

/** Form **/
.form-controle {
    background-color: #222;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.form-label {
    color: #b0b0b0;
    font-weight: 500;
}

.dark-input {
    background-color: #2a2a2a !important;
    border: 1px solid #c4c4c4 !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 0.75rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dark-input:focus {
    background-color: #2f2f2f !important;
    border-color: #CFB15A !important;
    box-shadow: 0 0 0 0.2rem rgba(187, 185, 68, 0.25);
}

.btn-success {
    background-color: rgb(0, 141, 0);
    border: solid 2px rgb(0, 141, 0);
}

.btn-success:hover {
    transition: all .4s;
    background: none;
}

.btn-danger {
    background-color: rgb(168, 0, 0);
    border: solid 2px rgb(168, 0, 0);
}

.btn-danger:hover {
    transition: all .4s;
    background: none;
}


/** Form dropdown **/
.header-form>#btn-back {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1001;
}

.header-form {
    position: sticky;
    top: 64px;
}

.sticky-form {
    position: sticky;
    top: 64px;
    z-index: 1000;
    background-color: rgb(0, 0, 0);
    border-bottom: 1px solid #ddd;
}

.form-select,
.btn-search,
.btn-reset {
    border-radius: 16px;
}

.form-select {
    background-color: #000;
    color: white;
}

.filter-group {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-group label {
    width: 100px;
    text-align: left;
    margin-right: 10px;
    font-weight: 500;
}

button.btn-search {
    background-color: white;
    color: black;
    border: 1px solid #ccc;
}

button.btn-reset {
    background-color: black;
    color: white;
    border: none;
}

button.btn-reset,
button.btn-search {
    font-weight: bold;
    padding: .3em;
    width: 8em;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/**********************DASHBOARD**************************/
.toggle-group-selector {
    display: inline-flex;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 100px;
    overflow: hidden;
    background-color: #000000;
}


.button-selector {
    padding: .5em;
    background: none;
    border: none;
    color: white;
    fill: white;
    margin: 0;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.button-selector.selected {
    border: 1px solid gray;
    background-color: white;
    color: black;
    fill: black;
    z-index: 1;
}

.button-selector.selected>svg {
    fill: black;
}

.container_section {
    display: flex;
    flex-direction: row;
}


.data-title {
    color: rgb(15, 162, 230);
    font-weight: bold;
}

/* Style for data blocks */
.data-block h2 {
    font-size: 1.5rem;
    font-weight: bold;
}

.small-title {
    font-size: 1rem;
    font-weight: bold;
}

/* Style for horizontal rules */
hr {
    margin: 10px 0;
    width: 100%;
}

.column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Separator line between columns */
.vertical-line {
    width: 1.1px;
    height: 98%;
    background-color: #ffffff;
    margin: 0;
}

.data-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}





.button {
    margin: 1em;
    padding: 0.5em;
}

.button>a {
    background-color: #CFB15A;
    transition: all 0.4s;
    width: 80%;

}

.button>a:hover {
    background-color: #e8c867;
    transition: all 0.4s;
}

/** Sidebar and topbar */
#sidebarNav {
    width: fit-content;
}

/**** HOME ***/

.widgets-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.widget {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid white;
    border-radius: 8px;
    width: calc(25% - 20px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.widget a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: white;
    text-decoration: none;
}

.widget-content {
    padding: 10px;
    flex: 1;
}

.widget h3 {
    margin: 0 0 5px;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}

.widget p {
    font-size: 0.9rem;
    margin: 0 0 10px;
}

.widget img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .widget {
        width: calc(50% - 20px);
    }
}

@media (max-width: 500px) {
    .widget {
        width: 100%;
    }
}

/** Appstore*/
.appstore-filter-group {
    gap: 10px;
}

.appstore-filter-group button {
    border: none;
    font-weight: bold;
    border-radius: 20px;
    padding: 10px;
    color: black;
    background-color: white;
}

.appstore-filter-group button.selected {
    background-color: #CCBB5B;
    color: white;
}


/** Card View**/
.product-card {
    background: linear-gradient(to bottom,
            var(--color1) var(--percent-normal),
            var(--color2) 100%);
    transition: all 0.3s ease;
    height: 60vh;
    min-height: 350px;
    max-height: 700px;
    width: 350px;
    border-radius: 25px;
    transition: transform 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
    border: solid 1px rgb(0, 0, 0);
    margin: 1em;
    padding-top: 1em;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.product-card:hover {
    background: linear-gradient(to bottom,
            var(--color1) var(--percent-hover),
            var(--color2) 100%);
}

/*** List View **/
.product-list {
    background: linear-gradient(to right,
            var(--color1) var(--percent-normal),
            var(--color2) 100%);
    transition: all 0.7s ease;
}

.product-list:hover {
    transition: all 0.7s ease;
    background: linear-gradient(to right,
            var(--color1) var(--percent-hover),
            var(--color2) 100%);
}


.product-header {

    flex-shrink: 0;
}

.product-header {
    padding-left: 1em;
    padding-right: 1em;
}

.product-title {
    align-items: center;
}

.appstore-logo {
    border-radius: 15px;
    height: 50px;
    width: 50px;
    flex-shrink: 0;
}

.product-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
}


.appstore-visual {
    width: 100%;
    max-width: 100%;
    min-height: 80px;
    height: 100%;
    flex-shrink: 1;

}

.appstore-big-button a {
    background-color: black;
    color: white;
    font-weight: bolder;
    border-radius: 20px;
    display: block;
    text-align: center;
    transition: background 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



.appstore-big-button a {
    margin-bottom: 1em;
    padding: 0.75em 1em;
    font-size: 1.1rem;
}


.appstore-button a,
.product-footer a {
    background-color: black;
    color: white;
    font-weight: bolder;
    border-radius: 20px;
    display: block;
    text-align: center;
    transition: background 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appstore-button a {
    padding: 0.25em 1em;
    font-size: 1rem;
}

.product-footer {
    height: 100%;
    align-items: end;
    position: relative;

}

.product-footer a {
    position: absolute;
    bottom: 15px;
    padding: 0.75em 1em;
    font-size: 1.1rem;

}

.product-card h3 {
    color: #000000;
    font-size: 1.5em;
    margin-left: .4em;
    margin-bottom: 0;
    text-overflow: ellipsis;
    white-space: normal;
    max-height: 5em;
}

.app-info {
    color: #000000;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


.appstore-results {
    justify-content: space-between;
    width: 100%;
}

/*******APPSTORE LIST VIEW******/
.list-view {
    color: #000000;
}

.text-truncate-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}


/** CONTACT **/
.contact-section{
    border-radius: 20px;
    border: solid 1px white;
    padding: 1em;
    margin: 1em;
}
.contact-list{
    list-style: none;
}

.contact-list span,
.contact-list *{
    color: white;
    font-size: large;
    padding: 0 !important;
}

.contact-list a {
    cursor: pointer;
    transition: all .4s;
}

.contact-list a:hover  .text,
.contact-list a:hover .icon,
.contact-list a:hover .icon i{
    color: #CCBB5B;
    transition: all .4s;
}



.with-padding-topbar {
    padding: 64px !important;
}

    /**************** Table *********/
    .global-table {
        width: 100%;
        border-collapse: collapse;
        background-color: #1e1e1e; 
        color: #e0e0e0;
    }

    .global-table th,
    .global-table td {
        border: 1px solid #555;
        padding: 8px;
        text-align: center;
    }

    .global-table th {
        background-color: #333; 
    }

    .global-table tbody tr:nth-child(even) {
        background-color: #2a2a2a;
    }

    .global-table tbody tr:nth-child(odd) {
        background-color: #1e1e1e;
    }

    /*** My Master Data ****/

    .tabs {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }
    .tab-btn {
        padding: 8px 15px;
        border: 1px solid #ccc;
        background: #f0f0f0;
        cursor: pointer;
        border-radius: 5px;
    }
    .tab-btn:hover {
        background: #ddd;
    }
    .tab-panel {
        display: none;
    }
    .tab-btn.selected {
        background: #CFB15A;
        color: white;
        font-weight: bold;
        border-color: #CFB15A;
    }