.force-break {
    display: block !important;
}

.hr-gri {
    border: none;
    border-top: 1px solid #ddd;
    margin: -10px 0 20px 0;
}

.hr-light {
    border: none;
    border-top: 1px solid rgba(0,0,0,.1);
    margin: -10px 0 20px 0;
}

.hr-dark {
    border: none;
    border-top: 1px solid rgba(0,0,0,.3);
    margin: -10px 0 20px 0;
}

.hr-dark-2 {
    border: none;
    border-top: 1px solid rgba(0,0,0,.3);
    margin: 0 0 20px 0;
}


.success-message {
    color: #2e7d32;
}

.ap-error-message,
.error-message { 
    font-size: 14px; 
    color: #ff0000;
}

.ap-error-message,
#ap-login-message,
#ap-registration-message,
#ap-new-password-message,
#ap-confirmation-message {
    /* display: none; */
}

.active {
    display: block;
}

.ap-error-message,
.ap-static-error-message {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #d63638;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ap-error-message {
    pointer-events: none;
}

.ap-error-message:not(:empty),
.ap-static-error-message:not(:empty) {
    opacity: 1;
}


.stelutza-required {
color: #0cb8b6 !important;
}

.invalid {
    border-color: #ff0000 !important;
}

.deactivated {
    color: #d9d8d8 !important;
}


.mesaj-lipsa {
    font-size: 16px; 
    text-align: center;
    font-weight: bold;
    color: #ff0000;
}


.inline-block {
    display: inline-block !important;
}

.index {
    font-weight: bold;
    float: left;
}

.float-left {
    float: left !important;
}

.btn-teal {
    background-color: #0cb8b6;
    border: none;
    border-radius: 3px;
    padding: 6px 16px;
    color: white;
    font-size: 13px;
    line-height: 20px;
}

.input-fals {
    width: 100%;
    padding: 8px 12px 8px 12px;
    display: block;
    background-color: rgba(0,0,0,.07);
    border-radius: 3px;
    border: none;
    font-family: "Montserrat";
    font-weight: 300;
    font-size: 14px;
}

.align-right {
    text-align: right !important;
}

.align-center {
    text-align: center !important;
}

.w-15 {
    width: 15px;
}

.w-20 {
    width: 20px;
}

.w-30 {
    width: 30px;
}

.w-40 {
    width: 40px;
}

.w-60 {
    width: 60px;
}


.w-80 {
    width: 80px;
}

.w-90 {
    width: 90px;
}

.w-100 {
    width: 100px;
}

.w-110 {
    width: 110px;
}

.w-115 {
    width: 110px;
}

.w-120 {
    width: 120px;
}

.w-125 {
    width: 125px;
}

.w-130 {
    width: 130px;
}

.w-135 {
    width: 135px;
}


.w-140 {
    width: 140px;
}

.w-150 {
    width: 150px;
}

.w-200 {
    width: 200px;
}

.w-250 {
    width: 250px;
}

.w-280 {
    width: 280px;
}

.w-400 {
    width: 400px;
}

.w-pr-5 {
    width:5%;
}

.w-pr-10 {
    width:10%;
}

.w-pr-15 {
    width:15%;
}

.w-pr-100 {
    width:100%;
}

.h-pr-100 {
    height:100%;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

.pr-0 {
    padding-right: 0;
}

.pr-5 {
    padding-right:5px;
}

.pr-10 {
    padding-right: 10px;
}

.pr-20 {
    padding-right: 20px;
}

.pb-10 {
    padding-bottom: 10px;
}

.pb-20 {
    padding-bottom: 20px;
}

.pb-30 {
    padding-bottom: 30px;
}

.pl-0 {
    padding-left: 0;
}

.pl-5 {
    padding-left: 5px;
}

.pl-20 {
    padding-left: 20px;
}

.pl-40 {
    padding-left: 240px;
}

.pt-0 {
    padding-top: 0 !important;
}

.pt-5 {
    padding-top: 5px !important;
}

.pt-6 {
    padding-top: 6px !important;
}

.pt-7 {
    padding-top: 7px !important;
}


.pt-10 {
    padding-top: 10px !important;
}

.pt-15 {
    padding-top: 15px;
}

.pt-20 {
    padding-top: 20px;
}


.mt-10 {
    margin-top:10px;
}

.mt-15 {
    margin-top:15px;
}

.mt-25 {
    margin-top:25px;
}

.mr-15 {
    margin-right:15px;
}

.mr-30 {
    margin-right:30px;
}

.mb-n20 {
    margin-bottom: -20px;
}

.mtb-n20 {
    margin-top: -20px;
}

.mb-0 {
    margin-bottom:0;
}

.mb-10 {
    margin-bottom:10px;
}

.mb-15 {
    margin-bottom:15px;
}

.mb-20{
    margin-bottom:20px;
}

.lh-1 {
    line-height: 1;
}



.buton-turcoaz,
a.buton-turcoaz,
.buton-portocaliu-1,
.buton-portocaliu-2,
.buton-gri,
.buton-gri-deactivated,
.buton-gri-deschis,
.buton-albastru {
    border: none;
    border-radius: 3px;
    color: #fff !important; 
    
}

.buton-turcoaz,
a.buton-turcoaz,
a.buton-turcoaz-outline,
.buton-portocaliu-2,
.buton-gri,
.buton-gri-deactivated,
.buton-gri-deschis,
.buton-albastru {
    font-weight: 500;
}

.buton-turcoaz,
a.buton-turcoaz,
a.buton-turcoaz-outline,
.buton-portocaliu-2,
.buton-gri,
.buton-gri-deactivated,
.buton-gri-deschis,
.buton-albastru {
    font-size: 13px;
}

.buton-portocaliu-1 {
    font-size: 14px;
    font-weight: 700;
}

a.buton-turcoaz,
a.buton-turcoaz-outline,
a.buton-portocaliu-outline {
    padding: 9px 16px 10px 16px;
}


.buton-turcoaz,
.buton-portocaliu-1,
.buton-portocaliu-2,
.buton-gri,
.buton-gri-deactivated,
.buton-gri-deschis,
.buton-albastru {
   padding: 6px 16px 7px 16px; 
}

.buton-turcoaz,
a.buton-turcoaz {
    background-color: #0cb8b6;
}

.buton-turcoaz:hover
a.buton-turcoaz:hover, 
.buton-turcoaz:hover:not(:disabled) {
    background-color: #099a99;
    cursor: pointer;
}

a.buton-turcoaz-outline {
    background-color: transparent;
    border: 2px solid #0cb8b6;
    color: #0cb8b6 !important;
}

a.buton-turcoaz-outline:hover {
    color: #099a99 !important;
    border: 2px solid #099a99;
}

.buton-turcoaz:disabled {
    background: #0cb8b6;
    cursor: not-allowed;
    opacity: 0.6;
}


.buton-portocaliu-1,
.buton-portocaliu-2 {
    background-color: #f57c00;
}

.buton-albastru {
    background-color: #3897fd;
}

.buton-portocaliu-1:hover,
.buton-portocaliu-2:hover {
    background-color: #ef6c00;
    cursor: pointer;
}

a.buton-portocaliu-outline {
    background-color: transparent;
    border: 2px solid #f57c00;
    color: #f57c00 !important;
}

a.buton-portocaliu-outline:hover {
    color: #ef6c00 !important;
    border: 2px solid #ef6c00;
}

.buton-portocaliu-2:disabled {
    background-color: #f57c00;
    opacity: 0.6;
    cursor: not-allowed;
}

.buton-gri {
    background-color: #767574;
    color:#fff;
}

.buton-gri:hover {
    background-color: #9aa4b080;
    cursor: pointer;
}

.buton-gri-deactivated {
    background-color:#9aa4b0;
}

/* o merge si aici cu disabled? */
.buton-gri-deactivated:hover {
    background-color:#545454;
    cursor: pointer;
}

.buton-gri:disabled {
    background-color:#545454;
    opacity: 0.6;
    cursor: not-allowed;
}

.buton-gri-deschis {
    background-color:#a3a2a1;
    color:#fff;
}

.buton-gri-deschis-hover {
    background-color: #767575;
}



.buton-albastru:hover {
    background-color: #0275ef;
    cursor: pointer;
}

.text-bold{
    font-weight: bold;
}

.text-bold-turcoaz{
    font-weight: bold;
    color:#0cb8b6;
}

.text-turcoaz {
    color:#0cb8b6;
}

.text-portocaliu {
    color:#f57c00;
}

.valign-top {
    vertical-align:top !important;
}

.valign-middle {
    vertical-align:middle;
}

.ap-select {
    width: 100%;
    padding: 7px 12px 7px 12px;
    font-size: 14px;
    border-radius: 3px;
    border:none;
    background-color: rgba(0, 0, 0, 0.07);
    color: #222;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23666' d='M5 7l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;

    cursor: pointer;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.ap-select:hover {
    border-color: #9aa4b0;
}

.ap-select:focus {
    box-shadow: 0 0 0 2px rgba(91,156,255,.2);
    outline: none;
}

.ap-select.invalid {
    border-color: #e5533d;
    box-shadow: 0 0 0 2px rgba(229,83,61,.15);
}



#formular-programare {
    max-width: 900px;
    margin: 20px auto;
}
.boldRow {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    
}
.rowItem {
    flex: 1;
   
}

.rowItem label {
    font-weight: 600;
    display: block;
    margin-bottom:3px;
}

.required {
    color: #dc3545;
    margin-left: 3px;
}

.rowItem select:disabled,
.rowItem input:disabled,
.rowItem textarea:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}
.rand-serviciu {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}
.serviciu-select {
    flex: 1;
}


/* Datepicker styling */
.zi-disponibila a {
    background-color: #aafbfa !important;
    font-weight: bold;
}
.zi-indisponibila {
    opacity: 0.5;
}

.ui-datepicker {
    z-index: 10001 !important; 
}


#formular-programari-trecute {
    width: 100%;
    padding: 5px 20px 5px 20px;
    margin: 25px 0 10px 0;
    background-color: #fff;
}
.rezultate-programari-trecute {
    width:100%;
    margin: 25px 0 30px 0;
}

.prog-tr-row {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.3);
    padding: 20px 20px 20px 15px;
}



.prog-tr-loading {
    text-align: center;
    padding: 20px;
    display: none;
}
.prog-tr-no-results {
    text-align: center;
    padding: 20px;
    color: #666;
    display: none;
}
.prog-tr-detalii {
    background: #f9f9f9;
    border-left: 7px solid #0cb8b6;
    border-bottom: 1px solid rgba(0,0,0,.3);
    display: none;
    margin:0 0 25px 0;
    
}

.prog-tr-detalii-row {
    border-bottom: 1px solid rgba(0,0,0,.3);
    padding: 20px 20px 20px 10px;
}


.prog-tr-investigatie-row {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}
.prog-tr-investigatie-row:last-child {
    border-bottom: none;
}




.recaptcha-logs-container {
    padding: 20px;
    background: #f5f5f5;
}
.recaptcha-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}
.stat-card .number {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}
.stat-card .subtitle {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}
.recaptcha-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.recaptcha-table table {
    width: 100%;
    border-collapse: collapse;
}
.recaptcha-table th {
    background: #2c3e50;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}
.recaptcha-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}
.recaptcha-table tr:hover {
    background: #f8f9fa;
}
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.badge-success {
    background: #d4edda;
    color: #155724;
}
.badge-danger {
    background: #f8d7da;
    color: #721c24;
}
.badge-allowed {
    background: #d1ecf1;
    color: #0c5460;
}
.badge-blocked {
    background: #f8d7da;
    color: #721c24;
}
.score {
    font-weight: bold;
}
.score-high { color: #28a745; }
.score-medium { color: #ffc107; }
.score-low { color: #dc3545; }
.filters {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.filters select {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}


.prog-viitoare-container {
    width: 100%;
    margin: 0 auto;
}


.prog-card-header {
    background-color: #0cb8b6;
    color: white;
    padding: 15px 20px 15px 20px;
    margin-bottom:20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.prog-header-left {
    display: flex;
    align-items: center;
    gap: 12px; /* Spațiu între icon și texte */
}

.prog-card-date {
    font-size: 20px;
    font-weight: bold;
}

.prog-card-time {
    font-size: 18px;
    font-weight: bold;
    opacity: 0.9;
}

.bg-white {
    background-color: #fff;
}

.bg-grey {
    background-color: #ddd;
}

.bg-turcoaz {
    background-color: #0cb8b6;
}



.prog-info-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.prog-info-grid-2 {
    display: grid;
    grid-template-columns:3fr 2fr;
    gap: 20px;
    margin-bottom: 20px;
}

.prog-info-grid-2bis {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.prog-info-grid-2pis {
    display: grid;
    grid-template-columns:8fr 2fr;
    gap: 20px;
    
}

.prog-info-grid-2his {
    display: grid;
    grid-template-columns:7fr 3fr;
    gap: 20px;
    
}


.prog-info-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.prog-info-grid-3bis {
    display: grid;
    grid-template-columns: 4fr 1fr 7fr;
    gap: 20px;
    margin-bottom: 20px;
    
}

.prog-info-grid-3pis {
    display: grid;
    grid-template-columns: 2.5fr 2.5fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    
}

.prog-info-grid-3min {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.prog-info-grid-4 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.prog-info-grid-4bis {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}


.prog-info-grid-4min {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.prog-info-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: rgba(0,0,0,.07);
}

.prog-info-item br {
    display: none !important;
}

.prog-info-item-turcoaz-pale {
    border: 1px solid #76e3e2;
    border-radius: 8px;
    padding: 15px;
    background-color: #c7f4f4;
}

.prog-info-item-portocaliu-pale {
    border: 1px solid #f8c396;
    border-radius: 8px;
    padding: 15px;
    background-color: #faddc3;
}

.prog-info-item-alb {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
}



.prog-info-icon {
    height:70px;
}

.prog-info-icon .icon-hospital-doctor,
.prog-info-icon .icon-medical-bag,
.prog-info-icon .icon-health-clinic,
.prog-info-icon .icon-umbrella,
.prog-info-icon .icon-list,
.prog-info-icon .icon-conversations,
.prog-info-icon .icon-medical-note-pencil {
    font-size: 48px;
    line-height:70px;
    flex-shrink: 0; /* Icon-ul nu se micșorează */
    margin-top: 2px; /* Aliniere fină cu textul */
    padding-bottom:10px;
    color: #0cb8b6;
}

.prog-info-icon-2,
.prog-info-icon-2-turcoaz,
.prog-info-icon-2-portocaliu {
    height:20px;
    font-size: 20px;
    flex-shrink: 0; /* Icon-ul nu se micșorează */
    padding-right: 7px; /* Aliniere fină cu textul */
    
}

.prog-info-icon-2-turcoaz {
    color: #0cb8b6;
}

.prog-info-icon-2-portocaliu {
    color: #ef872e;
}


.prog-servicii-list {
    background: #fff;
    border-radius: 8px;
    margin-top:10px;
    padding: 0 15px;
}

.prog-serviciu-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #abacac;
}

.prog-serviciu-item:last-child {
    border-bottom: none;
}

.prog-serviciu-nume {
    
}

.prog-serviciu-pret {
    color: #0cb8b6;
    font-weight: 600;
}

.prog-card-footer {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.prog-card-footer-grey {
    padding: 0 20px 20px 20px;
    background: #ddd;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}



.prog-btn {
    padding: 6px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
   
}

.prog-btn-modifica,
.prog-btn-confirma,
.prog-modal-btn-submit {
    background: #3b82f6;
    color: white;
}

.prog-btn-modifica:hover,
.prog-modal-btn-submit:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.prog-btn-anuleaza,
.prog-modal-btn-cancel {
    background: #ef4444;
    color: #fff;
}

.prog-btn-anuleaza:hover,
.prog-modal-btn-cancel:hover {
    background: #d20505;
    color: white;
    transform: translateY(-2px);
}


.prog-loading,
.receptie-loading {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.prog-spinner,
.receptie-prospinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.prog-no-results {
    text-align: center;
    padding: 30px 20px;
    color: #6b7280;
}

.prog-no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}



.prog-no-results h3 {
    color: #111827;
    font-size: 20px;
    margin-bottom: 10px;
}

.prog-no-results p {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 24px;
}

/* Modal Styles */
.prog-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.prog-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.prog-modal-header {
    padding: 25px;
    background-image:url("images/bgn-grad-2-1.png");
    background-color: #099a99;
    color: fff;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prog-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.prog-modal-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #099a99;
}

.prog-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prog-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.prog-modal-body {
    padding: 0 30px 0 30px;
}

.prog-group {
    display: flex;
    align-items: center;
    gap: 12px; /* Spațiu între icon și texte */
    margin-bottom: 20px;
    
}

.prog-group-date {
    font-size: 18px;
    font-weight: bold;
}

.prog-group-time {
    font-size: 16px;
    opacity: 0.9;
}

.prog-group-label-mare {
    font-size: 18px;
    font-weight: bold;
    margin-bottom:10px;
}

.prog-group-label-mic {
    display: grid;
    grid-template-columns:1fr 4fr;
    gap: 10px;
    margin-bottom: 20px;
}

.prog-group-value {
    font-size: 14px;
    opacity: 0.9;
}


.prog-form-group {
    margin-bottom: 20px;
}

.prog-form-label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
}




.prog-modal-footer {
    padding: 0 30px 20px 30px;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.prog-modal-btn {
    padding: 6px 18px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
   
    
}




.prog-modal-btn-danger {
    background: #ef4444;
    color: white;
}

.prog-modal-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.prog-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.prog-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.prog-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}



.prog-form-textarea {
    height: 100px;
}

.prog-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}
.prog-error.show {
    display: block;
}
.prog-form-input.error,
.prog-form-textarea.error {
    border-color: #dc2626;
}
.prog-char-count {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
    margin-top: 3px;
}
.prog-char-count.warning {
    color: #f59e0b;
}
.prog-char-count.error {
    color: #dc2626;
}


.prog-modal-content {
    position: absolute !important; /* NU fixed */
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* restul stilurilor tale */
}

.ui-draggable-dragging.prog-modal-content {
    transform: none !important; /* Elimină transform când tragi */
}



.prog-card {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 35px;
    padding:20px;
}

.receptie-prog-filtru {
    background-color: #fff;
    border-radius: 8px;
    padding:10px 20px;
}


/* Labels inline */
.receptie-prog-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.receptie-prog-row-header strong {
    color: #111827;
    font-size: 15px;
    display: block;
    line-height: 1.4;
}

/* Badge statut */
.prog-status-badge,
.receptie-prog-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 4px;
   
    text-align: center;
}

.prog-status-badge.in-asteptare,
.receptie-prog-badge.in-asteptare {
    background: #ef872e;
    color: #fff;
}

.prog-status-badge.confirmata,
.prog-status-badge.efectuata {
    background-color: #2b73c9;
    color: #fff;
}

.prog-status-badge.anulata {
    background-color: #f72714;
    color: #fff;
}



/* Separator HR */
.prog-hr {
    height: 1px;
    background: #e5e7eb;
    margin: 20px 0;
}


/* Casete pentru precizări și anulare */
.receptie-prog-item-caseta-1 {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 16px;
    border-radius: 8px;
}

.receptie-prog-item-caseta-2 {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 16px;
    border-radius: 8px;
}

.receptie-prog-item-caseta-1 .receptie-prog-label,
.receptie-prog-item-caseta-2 .receptie-prog-label {
    margin-bottom: 8px;
}



/* Loading state */
.prog-loading {
    text-align: center;
    padding: 60px 20px;
}

.prog-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.prog-loading p {
    color: #6b7280;
    font-size: 15px;
}









/**
 * Stiluri pentru formularul de creare cont medic
 */

.ap-create-medic-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ap-create-medic-form h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.ap-create-medic-form .boldRow {
    margin-bottom: 8px;
}

.ap-create-medic-form .boldRow:last-of-type {
    margin-top: 20px;
}

.ap-create-medic-form label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.ap-create-medic-form input[type="email"],
.ap-create-medic-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.ap-create-medic-form input[type="email"]:focus,
.ap-create-medic-form select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.ap-create-medic-form select {
    cursor: pointer;
    background-color: #fff;
}

.ap-create-medic-form button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ap-create-medic-form button[type="submit"]:hover {
    background-color: #005a87;
}

.ap-create-medic-form button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Mesaje de eroare */
.ap-error-message {
    display: block;
    color: #d63638;
    font-size: 14px;
    margin-top: 5px;
    
}

/* Mesaje generale */
#ap-create-medic-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

#ap-create-medic-message:not(:empty) {
    display: block;
}

#ap-create-medic-message.ap-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#ap-create-medic-message.ap-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#ap-create-medic-message p {
    margin: 0;
}




/**
 * Stiluri pentru pagina de administrare conturi medici
 */

.ap-manage-medic-accounts {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.ap-manage-medic-accounts h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

/* Wrapper tabel cu scroll */
.ap-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Tabel */
#medici-table,
#specialitati-table,
#investigatii-table,
#lista-clinici-table,
#titluri-table,
#competente-table,
#tip-asigurare-table,
#receptie-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}



#medici-table th,
#specialitati-table th,
#investigatii-table th,
#lista-clinici-table th,
#clinici-container th,
#titluri-table th,
#competente-table th,
#tip-asigurare-table th,
#receptie-table th {
    color: #fff;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

#medici-table tbody tr,
#specialitati-table tbody tr,
#investigatii-table tbody tr,
#lista-clinici-table tbody tr,
#titluri-table tbody tr,
#competente-table tbody tr,
#tip-asigurare-table tbody tr,
#receptie-table tbody tr {
    border-bottom: 1px solid #e5e5e5;
   
}

#medici-table tbody tr:hover,
#specialitati-table tbody tr:hover,
#investigatii-table tbody tr:hover,
#lista-clinici-table tbody tr:hover,
#titluri-table tbody tr:hover,
#competente-table tbody tr:hover,
#tip-asigurare-table tbody tr:hover,
#receptie-table tbody tr:hover {
    background-color: #f9f9f9;
}

#medici-table td,
#specialitati-table td,
#investigatii-table td,
#lista-clinici-table td,
#titluri-table td,
#competente-table td,
#tip-asigurare-table td,
#receptie-table td {
    background-color: #fff !important;
    padding: 15px;
    
}



/* Badge-uri status */
.ap-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ap-status-badge.active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ap-status-badge.inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Butoane acțiuni */
.ap-actions {
    white-space: nowrap;
}

.ap-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    margin-right: 8px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.ap-btn:last-child {
    margin-right: 0;
}

.ap-btn .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.ap-btn-success {
    background-color: #28a745;
    color: #fff;
}

.ap-btn-success:hover {
    background-color: #218838;
}

.ap-btn-warning {
    background-color: #ffc107;
    color: #000;
}

.ap-btn-warning:hover {
    background-color: #e0a800;
}

.ap-btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.ap-btn-danger:hover {
    background-color: #c82333;
}

.ap-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animație spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Mesaje generale */
#ap-manage-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

#ap-manage-message:not(:empty) {
    display: block;
}

#ap-manage-message.ap-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#ap-manage-message.ap-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#ap-manage-message p {
    margin: 0;
}

/* Mesaj când nu sunt rezultate */
.ap-no-results {
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

/* === MODAL === */
.ap-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.ap-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    position: relative;
    animation: modalSlideDown 0.3s ease-out;
}

@keyframes modalSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ap-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.ap-modal-close:hover {
    color: #000;
}

.ap-modal-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 22px;
}

.ap-modal-content p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.ap-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.ap-btn-primary {
    background-color: #0073aa;
    color: #fff;
}

.ap-btn-primary:hover {
    background-color: #005a87;
}

.ap-btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.ap-btn-secondary:hover {
    background-color: #e0e0e0;
}


.toggle-pass {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    pointer-events: all; /* Să fie clickabil */
}

#info-paginare {
    display: flex;
    align-items: left;
    gap: 6px; /* distanță între icon și text */
    padding: 10px; 
    background: #deedf2; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    color: #0076a7;
    vertical-align: middle;
    
}

.text-info-paginare {
    font-size: 14px;
    line-height: 1.2;
}

.info-complete {
    display: flex;
    align-items: left;
    gap: 6px; /* distanță între icon și text */
    padding-top: 10px; 
    vertical-align: middle;
    border-bottom: 2px solid #e5e7eb;
    margin: 0 0 20px 0;
}

.text-info-complete {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
     
}

.profil-pacient {
    width:100%;
    background-color:#fff;
    border-radius: 8px;
    padding: 25px 20px 15px 20px;
    margin-bottom: 30px;
}






.profil-pacient-row {
    margin-bottom:15px; 
    border-bottom: 1px solid rgba(0,0,0,.3);
    padding-bottom:10px;
    
}

#formular-programare {
    width:100%;
    background-color:#fff;
    border-radius: 8px;
    padding: 5px 20px 15px 20px;
    margin-bottom: 30px;
}



.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.login-form,
.register-form,
.resetare-form,
.ap-new-password-form,
.ap-confirmation-form {
    background-color: #fff;
    border-radius: 8px;
    padding:20px;
    margin-bottom: 100px;
}

.white-container {
    width:100%;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.medic-container {
    width:100%;
}

.medic-container-body,
.asp-form-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.label-medic {
    padding:18px 0 2px 0;
}


.poza-medic-wrapper,
.poza-medic-actions {
    width:200px;
    text-align: center;
}




.icon-info-medic {
    height: 30px;
    font-size: 30px;
    padding-right: 7px;
    color: #0cb8b6;
}

#tabel-program td:nth-child(2) {
    width:90px;
}
#tabel-program td:nth-child(3) {
     width:5px;
}
#tabel-program td:nth-child(4) {
    width:90px;
}
#tabel-program td:nth-child(5) {
    width:5px;
}
#tabel-program td:nth-child(6) {
    width:90px;
}
#tabel-program td:nth-child(7) {
    width:5px;
}
#tabel-program td:nth-child(8) {
    width:90px;
}
#tabel-program td:nth-child(9) {
    width:30px;
}



#tabel-tarife td:nth-child(1) {
    width:600px;
}

#tabel-tarife td:nth-child(3) {
    width:30px;
}












@media (max-width: 991px) {

    #formular-programari-trecute {
    padding: 5px 10px 20px 10px;
    
    }

    .prog-viitoare-container {
        margin:0;
        padding: 0;
    }

    .prog-card-header {
        flex-direction: column;
        align-items: flex-start;
        
    }
    
    .prog-info-grid-1,
    .prog-info-grid-2,
    .prog-info-grid-2bis,
    .prog-info-grid-3,
    .prog-info-grid-3bis,
    .prog-info-grid-3pis,
    .prog-info-grid-4,
    .prog-info-grid-4bis {
        grid-template-columns: 1fr;
    }
    
    .prog-card-footer {
        flex-direction: column;
    }
    
    .prog-modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .login-grid {
    grid-template-columns: 1fr !important;
    }

    .login-form,
    .register-form {
        margin-bottom: 10px;
    }

    .resetare-form,
    .ap-new-password-form {
        margin-bottom: 600px;
    }
}



/* === STILURI SPECIFICE MODALURI === */

#edit-modal {
    padding: 0 10px 10px 10px !important;
}

.modal-edit .ui-dialog-titlebar,
.modal-delete .ui-dialog-titlebar,
.modal-toggle .ui-dialog-titlebar,
.modal-duplicate .ui-dialog-titlebar {
    border: none;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: bold;
    margin:10px 10px 0 10px;
}



.modal-edit .ui-dialog-titlebar-close,
.modal-delete .ui-dialog-titlebar-close,
.modal-toggle .ui-dialog-titlebar-close,
.modal-duplicate .ui-dialog-titlebar-close {
    background: transparent !important;
    border: none !important;
    width: 35px !important;
    height: 35px !important;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 !important;
    margin: 0 !important;
    position: absolute;
}

/* FORȚEAZĂ ascunderea iconița jQuery UI */
.modal-edit .ui-dialog-titlebar-close .ui-icon,
.modal-delete .ui-dialog-titlebar-close .ui-icon,
.modal-toggle .ui-dialog-titlebar-close .ui-icon,
.modal-duplicate .ui-dialog-titlebar-close .ui-icon {
    
    filter: brightness(0) invert(1); /* Face orice culoare → alb */
    
}

/* X-ul custom - folosește ::after în loc de ::before */
.modal-edit .ui-dialog-titlebar-close:after,
.modal-delete .ui-dialog-titlebar-close:after,
.modal-toggle .ui-dialog-titlebar-close:after,
.modal-duplicate .ui-dialog-titlebar-close:after {
    content: "×";
    font-size: 32px;
    color: white;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    display: block;
}

/* Hover pe butonul X */
.modal-edit .ui-dialog-titlebar-close:hover,
.modal-delete .ui-dialog-titlebar-close:hover,
.modal-toggle .ui-dialog-titlebar-close:hover,
.modal-duplicate .ui-dialog-titlebar-close:hover {
    color: #ff6b6b;
}



/* Modal edit - turcoaz */

.modal-edit .ui-dialog-titlebar {
    background: #0cb8b6;
}

/* Modal delete - portocaliu */
.modal-delete .ui-dialog-titlebar {
    background: #f57c00;
}

/* Modal toggle - gri */
.modal-toggle .ui-dialog-titlebar {
    background: #767574;
}

/* Modal clone - albastru închis */
.modal-duplicate .ui-dialog-titlebar {
    background: #3897fd;
}   

#ask-delete-mesaj,
#ask-toggle-mesaj,
#ask-duplicate-mesaj {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

#delete-titlu-nume,
#delete-medic-nume, 
#delete-competenta-nume,
#delete-specialitate-nume,
#delete-investigatie-nume,
#delete-clinica-nume,
#delete-receptie-nume {
    font-weight: bold;
    color:#ef6c00;
}

#toggle-titlu-nume,
#toggle-competenta-nume,
#toggle-specialitate-nume,
#toggle-medic-nume,
#toggle-clinica-nume,
#toggle-receptie-nume {
    font-weight: bold;
    color:#0cb8b6;
}

#duplicate-medic-nume {
    font-weight: bold;
    color:#3897fd;
}

.ui-widget button,
.ui-widget label,
.ui-widget input[type="text"] {
    font-family: 'Montserrat', sans-serif;
}

.ui-widget label {
    font-weight: 600;
}

#specialitati-container tr th,
#tabel-specialitati tr th,
#investigatii-container tr th,
#titluri-container tr th,
#competente-container tr th,
#tipasigurare-container tr th,
#tabel-tipuri-asigurare tr th {
    background-color: #0cb8b6;
    color:#fff;
    }

.lista-clinici-specialitati td,
.lista-clinici-tipuri-asigurare td {
    padding: 5px !important;
}

.border-bottom-row {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,.3);
}




