﻿.navbar-holder {
    height: 100%;
    width: 200px;
    justify-content: center;
    align-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.navbar {
    position: fixed;
    top: 30%;
    left: 20px;
    width: 80px; /* Breite der Navbar */
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.navch {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    padding: 15px;
    border-radius: 50%; /* Macht es rund */
    background-color: white; /* Weißer Hintergrund */
    width: 40px; /* Stelle die Größe des Kreises ein */
    height: 40px; /* Gleiche Höhe für ein perfektes Quadrat */
}

.navbar .active .navch{
    background: #3f4448;
}

.navbar a {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    transition: transform 0.3s;
    margin: 0;
}

.navbar .icon {
    align-self: center;
    padding-left: .25px;
    padding-bottom: 1px;
    font-size: 19px; /* Icon-Größe */
    transition: transform 0.3s, color 0.3s;
    color: black;
}

    .navbar a:hover{
        transform: scale(1.2);
    }

    .navbar .active .icon {
        transform: scale(1.1);
        color: white; /* Aktives Icon hervorheben */
    }

.active {
    transform: scale(1.2);
}

/* Standardmäßig Text ausblenden */
.nav-title {
    font-family: Arial;
    font-size: 13px;
    font-weight: 750;
    display: none;
    color: black
}

/* Nur wenn aktiv, dann anzeigen */
.navbar .active .nav-title {
    display: block;
}

.page-title {
    color: white;
    margin-left: 20px;
    font-size: 18px;
    font-weight: bold;
}

.page-content{
    display:flex;
    width: 100%;
    align-items: center;
    flex-direction: column;
}

.navbar-container {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 70px; /* Abstand zur Navbar */
    width:80px;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/*title*/
.title{
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-left: 15%;
}

.title h1{
    font-weight: bold;
    font-size:90px;
    margin-bottom: 15px;
    height: 75px
}


/*Dashboard Page*/

.first{
    display: flex;
    width: 100%;
    gap: 20px
}

.piechart-parent{
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 25px
}

.piechart-parent .left h1{
    font-weight: 800;
    font-size: 25px;
    margin-bottom: 20px
}

.status{
    display: flex;
    gap: 8px;
}

.status-circle {
    border-radius: 50px;
    padding: 2px;
    width: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: beige;
}

.yellow {
    background: #FFD700;
}

.golden {
    background: #FF4500;
}

.red {
    background: #8B0000;
}

/*chart-straight*/
.chart-straight {
    width: 600px;
    padding: 20px;
    background-color: white;
    border-radius: 50px;
    position: relative; /* Wichtig für die Positionierung der Hilfslinien */
}

.chart-title h1 {
    padding-top: 5px;
    font-weight: 800;
    font-size: 25px;
    margin-bottom: 0px;
}

.chart-title p {
    font-size: 14px;
    color: #666;
}

.chart-bars {
    margin-top: 20px;
    position: relative; /* Wichtig für die Positionierung der Hilfslinien */
}

.chart-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative; 
    justify-content: flex-start;
}

.bar {
    height: 20px;
    background-color: #00BCD4;
    border-radius: 5px;
    margin-right: 10px;
    position: relative;
    
}

.bar-label {
    width: 120px;
    font-size: 14px;
}

.bar-value {
    width: 20px;
    font-size: 14px;
    margin-left: 40px;
    margin-right: 10px
}

.chart__title{
    display: flex;
}

.kunde-button {
    background-color: #007bff; /* Blaue Hintergrundfarbe */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto; /* Button rechts ausrichten */
    margin-right: 20px;
    font-weight: 800;
    margin-top: 5px;
    max-height: 42px;
}

    .kunde-button:hover {
        background-color: #0056b3; /* Dunklerer Blauton beim Hover */
    }



/*Chart sales*/
.second{
    display: flex;
    width: 100%;
}

.chart_sales {
    width: 60%;
    padding: 20px;
    background-color: white;
    border-radius: 50px;
    position: relative;
    margin-top: 30px;
}

.chart-title_sales {
    gap: 20px;
    display: flex;
    justify-content: space-between;
}

.chart_text{
    margin-top: 10px;
}


.chart-title_sales h1 {
    font-weight: 800;
    font-size: 25px;
    margin-bottom: 5px;
}

.chart-title_sales p {
    margin: 0;
}

.sub-title {
    font-size: 14px;
}

.bolding {
    font-weight: 800;
    font-size: 20px;
    margin: 0;
}

.chart-bars_sales {
    gap: 9px;
    margin-top: 20px;
    display: flex;
    /* Hier kannst du optional eine feste Höhe setzen, wenn nötig */
}

.chart-bar_sales {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar-container {
    display: flex;
    align-items: flex-end; /* sorgt dafür, dass die Balken unten starten */
    height: 120px; /* feste Höhe, an der sich die Prozentwerte orientieren */
}

.bar_sales {
    width: 13px;
    border-radius: 3px;
    margin: 1px;
}

.monat-label {
    font-size: 12px;
    margin-top: 5px;
}


.steuern {
    background-color: #79a8d1;
}

.einkommen {
    background-color: #79e8f3;
}

.ausgaben {
    background-color: #9a79f3;
}

.monat-label_sales {
    font-size: 12px;
    margin-top: 5px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.legend-item p{
    margin: 0;
}

.steuern-color {
    background-color: #79a8d1;
}

.einkommen-color {
    background-color: #79e8f3;
}

.ausgaben-color {
    background-color: #9a79f3;
}


.product-chart {
    width: 520px;
    padding: 20px;
    background-color: white;
    border-radius: 50px;
    position: relative;
    margin-top: 30px;
    margin-left: 20px
}

.large{
    width: 140px;
}


/*Kunden Page*/
/* Hauptüberschrift und Info */
h1 {
    font-size: 50px;
    margin-bottom: 0;
}

.search-container {
    position: relative;
    margin-top: 30px;
    margin-bottom: 20px;
}

.search-container input {
    padding-left: 2.5rem;
    font-size: 14px;
    border: 1px solid black;
    background-color: transparent;
    border-radius: 30px;
    width: 300%;
    height: 50px;
}

.search-container .search-icon {
    position: absolute;
    left: 0.75rem; /* Abstand vom linken Rand */
    top: 37%;
    transform: translateY(-50%);
    color: #888;
    font-size: 20px;
    pointer-events: none; /* Damit das Icon das Klicken nicht blockiert */
}


.kunden-table {
    width: 80%;
    border-collapse: collapse;
    margin-top: 10px;
    float: right;
}

    .kunden-table th,
    .kunden-table td {
        padding: 12px;
        border-bottom: 1px solid #ccc;
        height: 60px;
        font-weight: 500;
        font-size: 17px;
    }

    .kunden-table th {
        text-align: left;
        font-weight: 800;
        font-size: 18px;
        color: #333;
        border-bottom: 2px solid black;
    }

.kunden-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

    .kunden-row:hover {
        background-color: #f0f8ff; 
    }

.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.expanded-row .expanded-content {
    background-color: transparent;
    padding: 20px;
    border-radius: 5px;
}

.expanded-content p{
    margin: 0;
}
.neukunde-label {
    color: red;
    font-weight: bold;
    margin-right: 10px;
}

.rechnung-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    margin-top: 10px;
}

.rechnung-button:hover {
    background-color: #0056b3;
}

.edit-delete {
    margin-top: 10px;
}

.edit-link {
    margin-right: 15px;
    color: yellow;
    text-decoration: none;
}

.delete-link {
    color: red;
    text-decoration: none;
}

    .edit-link:hover,
    .delete-link:hover {
        text-decoration: underline;
    }

.top-holder{
    display: flex;
    width: 100%;
}

.title__sc {
    width:21%;
    display: flex;
    flex-direction: column;
    margin-left: 15%;
}

.title__sc h1{
    font-size: 80px;
    font-weight: 700;
    height:80px;
}

.title__sc p {
    font-size: 14px;
    margin-left: 5px;
    color: #333;
}

.fix{
    display: flex;
}

.button-holder{
    width: 50%;
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    gap: 10px;
    padding-right: 30px
}

.margin{
    margin: 0;
}

.bezahlte-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrow {
    display: inline-block;
    width: 1.5rem; /* feste Breite, sodass alle Pfeile in einer Linie stehen */
    text-align: right;
    font-size: 1rem; /* anpassen, wenn nötig */
    color: #555;
}

/* Container für die Kundeninformationen im erweiterten Bereich */
.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem; /* Abstand zwischen den Zeilen */
}

.user-info__holder {
    display: flex;
    gap: 40px
}


/* Jedes Info-Paar in einer Zeile */
.user-info p {
    margin: 0;
    display: flex;
    align-items: center;
}

/* Die Labels sollen eine feste Breite haben, damit die Werte immer bündig beginnen */
.user-info p strong {
    width: 250px; /* Passe die Breite nach Bedarf an */
    display: inline-block;
}


.label__kunde{
    font-weight: 800;
    font-size: 18px;
}

.label__content{
    display:flex;
    gap: 20px;
}


/*Berichte*/

.navbar__page {
    display: flex;
    gap: 20px;
}

.navbar__page a{
    text-decoration: none;
}

.navbar__page .active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar__page .navch:hover {
    cursor: pointer;
}

.search-container__sc {
    position: relative;
    margin-top: 40px;
    margin-bottom: 20px;
    margin-left: 50px;
}

.search-container__sc input {
    padding-left: 2.5rem;
    font-size: 14px;
    border: 1px solid black;
    background-color: transparent;
    border-radius: 30px;
    width: 300%;
    height: 50px;
}

.search-container__sc .search-icon {
    position: absolute;
    left: 0.75rem; /* Abstand vom linken Rand */
    top: 37%;
    transform: translateY(-50%);
    color: #888;
    font-size: 20px;
    pointer-events: none; /* Damit das Icon das Klicken nicht blockiert */
}

.flex{
    display: flex;
    flex-direction: row;
}

.chart_text_b{
    display: flex;
    gap: 60px;
    font-size: 20px;
}

.chart_text_b p {
    margin: 0px;
}

.company{
    margin-bottom: 10px;
    margin-top: 20px;
}

.company p{
    margin: 0;
    font-weight: 700;
    font-size: 14px
}

.chart-bars_sales-sc {
    gap: 9px;
    margin-top: 20px;
    display: flex;
    width: 100%;
    /* Hier kannst du optional eine feste Höhe setzen, wenn nötig */
}

.chart-bar_sales-sc{
    width: 100%;
}

.bar_sales-sc {
    width: 100%;
    border-radius: 3px;
    margin: 1px;
}

.bar-container-sc {
    display: flex;
    align-items: flex-end; /* sorgt dafür, dass die Balken unten starten */
    height: 220px; /* feste Höhe, an der sich die Prozentwerte orientieren */
}

.nav-title-sc{
    color: black;
    text-decoration: none;
    transition: ease-in transform 0.1s;

}

.navbar__page-sc a {
    text-decoration: none;
    margin-left: 20px;
    font-weight: 700;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid black;
}

.navbar__page-sc a.active-sc {
    background-color: white; /* oder z.B. #3f4448, wenn du möchtest */
    color: black; /* oder weiß, je nach Hintergrund */
    border-bottom: 2px solid black; /* optional: etwas stärker absetzen */
}


.nav-title-sc:hover {
    display: inline-block;
    cursor: pointer;
    transform: scale(1.05);
}

.sccc{
    margin: 0;
    width: 80%;
}

.navc{
    width: 100%;
}

.navbar-holder__page{
    margin-left: 9%;
    margin-bottom: 15px;
}

/*Rechnung*/
.now{
    width: 30%;
}

.st{
    margin-left: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 1500px;
    height: 600px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.modal h2{
    align-self: flex-start;
    margin-top: 10px;
    font-weight: 800;
}

.modal-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-group label {
    width: 150px; /* feste Breite für alle Labels */
    text-align: left; /* Linksbündig */
    margin-right: 10px; /* Abstand zwischen Label und Input */
}

.form-group .form-control {
    flex: 1; /* Input füllt den restlichen Raum */
}


.form-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    align-items: center;
}

    .form-group label {
        width: 150px;
        text-align: left;
        margin-right: 10px;
    }

    .form-group .form-control {
        flex: 1;
    }
/* Dropdown Styles für Label-Auswahl */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-btn {
    padding: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
    background-color: #fff;
    width: 100%;
    text-align: left;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    background-color: #fff;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10;
}

.dropdown-item {
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.dropdown-item:last-child {
    border-bottom: none;
}
