body {
    border-top: none;
    font-family: 'Open Sans', sans-serif;
}

.btn {
    min-width: 100%
}

h2 {
    font-weight: 700;
}


.btn-reset,
.btn-primary,
.btn-outline-secondary,
.btn-graph {
    background-color: #AB1515;
    color: white;
    border-radius: 0px;
    font-size: 1.2em;
    text-align: center;
    padding: 0;
    display: inline-block;
    vertical-align: middle;

}

.btn-outline-secondary {
    background-color: #FFF;
    border: 1px solid #CCC;
    color: #000;
}

.btn-reset {
    background-color: #f5f5f5;
    color: black;
}


.results-section h1,
.results-section h3 {
    color: #002e73 ;
    font-weight: bold ;
}

.results-section button {
    background-color: #002e73;
    color: white;
    border-radius: 0px;

}


.form-control {
    font-size: 1.1em;
}

.daeFormClass {
    margin-bottom: 0;
    padding-bottom: 0;
}

.daeFormClass label {
    font-size: 15px;
    font-weight: 400;
}


.form-control-diff{ 
    color:red
}

#dae-box1 {
    background-color: #F0F0F1
}

#dae-box2 {
    background-color: #D6DAE6
}

#dae-box1,
#dae-box2 {
    width: fit-content;
    min-width: 110px;
}

#openModalButton {
    max-width: none;
}

.section-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}


.highlight {
    font-weight: bold;
}

.highlight-red {
    color: red;
}

.form-control {
    border-radius: 5px;
}

.btn {
    margin: 10px;
}

.btn:hover{
    color: #fff;
}

.btn-outline-secondary:hover{
    background-color: #fff;
    border-color: #AB1515;
    color: #000;
}

.card {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px 20px;
}

.card h5 {
    font-size: inherit;
    font-weight: bold;
}

.card .label {
    border-radius: 50%;

    margin-right: 5px;
}

.card .label-color {
    color: #FFF;
    background-color: #AB1515;
    margin-left: -15px;
}

.card h6 {
    padding-top: 10px;
}

#cl-2 {
    padding-left: 5px;
}

.input-group-addon {
    width: 55px !important;
}


.card-padding .input-group,
.card-padding label {
    padding-left: 15px;
    padding-right: 15px !important;
}

.highlight {
    font-weight: bold;
}

.highlight-red {
    color: red;
}

.form-control {
    border-radius: 5px;
}

.btn {
    margin: 10px;
}


.mb-4 {
    margin-bottom: 20px;
}

.card+.card {
    margin-top: 10px;
}

.d-flex {
    display: flex;
    padding-bottom: 15px !important;
    align-items: center;
    justify-content: center;
}

form .text-danger {
    padding: 0;

}

form .text-danger.pl {
    padding-left: 15px;
    justify-content: left;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.fixed-height {
    height: 20px !important;
    line-height: 20px !important;

}

.input-group {
    flex-wrap: nowrap !important;
}

@media (max-width: 768px) {
    .text-center {
        text-align: center !important;
    }

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.np-l {
    padding-left: 0 !important;
    margin-left: 0 !important;

}

.np-r {
    padding-right: 0 !important;
    margin-right: 0 !important;
}


.np {
    padding: 0 !important;
    margin: 0 !important;
    ;
}

.p-r-5 {
    padding-right: 5px !important;
}

.p-l-5 {
    padding-left: 5px !important;
}

.no-border {
    border: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table,
th,
td {
    border: 1px solid black;
}

th,
td {
    padding: 8px;
    text-align: center;
}

th {
    background-color: #2a408f;
    color: white;
}

.info-popover {
    cursor: pointer;
}

.info-popover i {
    color: #354D91;
    /* Info color */
}

/* Custom styles to match the design */
.popover {
    max-width: 300px;
    background-color: #354D91;
    /* Info color */
    color: white;
    opacity: 0.9;

}

.popover-title {
    font-weight: bold;
    font-size: 14px;
    text-align: left;
    background-color: #354D91;
    /* Info color */
}

.popover-content {
    font-size: 13px;
    text-align: left;
}

.popover .close {
    color: #FFF
}

.close {
    /* position: absolute; */
    top: 8px;
    right: 10px;
    opacity: 0.9;

}

.share {
    text-align: right;
    margin-top: 20px;
    margin-bottom: 10px;
}

.share .fa {
    font-size: 25px;
}

.share span {
    display: inline;
    cursor: pointer;
}

.share span:hover {
    color: #AB1515;
}

.popover.right>.arrow:after {
    border-right-color: #354D91;
    /* Info color */
}

.modal-title {
    display: inline;
}



/* Styling for red buttons */
.btn-danger {
    background-color: #b30000;
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #800000;
    color: #fff;
}

/* Custom label styling (numbers) */
.label-color {
    background-color: #b30000;
    color: #fff;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: bold;
    margin-right: 10px;
}

/* Table Styling */
.table-bordered {
    border: 1px solid #ddd;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #ddd;
    padding: 8px;

}

.table-bordered tbody tr {
    background: rgba(255, 255, 255, 0.4);
}

.table-bordered tbody tr:nth-child(even) {
    background: rgba(249, 249, 249, 0.4)
}


.table-responsive {
    margin-top: 15px;
}

.table td,
.table th {
    vertical-align: middle;
}

#cl-title {
    margin-bottom: 25px;
    font-weight: 600;
}

#embedCode {
    width: 100%;
    min-height: 100px;
}

.panel {
    min-height: 90px;
}


/* Responsive Button Adjustment */
@media (max-width: 768px) {
    .btn-danger {
        width: 100%;
        margin-bottom: 10px;
    }
}


.loan-info {
    border-left: 3px #ab1515 solid;
    background-color: #f4f5f6;
}

.loan-info h5 {
    margin-bottom: 10px;
    color: #666;
    font-weight: normal;
}

.loan-info p {
    font-size: 20px;
    margin: 0;
}

.loan-info strong {
    font-weight: 700;
}

.disclaimer {
    font-style: italic;
    font-size: 0.9em;
}

#results .text-danger {
    font-size: 0.9em;
}

p.modal-disclaimer {
    color: #808080;
    font-style: italic;
    text-align: justify;
}

.btn-outline-secondary.amortisationModal {
    padding-left: 5px;
    padding-right: 5px;
}

.watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 0;
    background: url("/images/logo.png") no-repeat center center;
    background-size: contain;
    transform: rotate(-15deg);
    opacity: 0.15;

}

.modal-body {
    position: relative;
    /* Pentru a poziționa watermark-ul în raport cu modal-body */
    z-index: 1;
    /* Conținutul are un index mai mare decât watermark-ul */
}

.modal-body .watermark {
    z-index: -1;
    /* Asigură-te că watermark-ul este în spatele conținutului */
}

.modal-body table {
    background-color: transparent;
}