body {
    background: #f6f8fa;
    font-family: 'Quicksand', Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 650px;
    margin: 24px;
    padding: 24px 16px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}
h2 {
    font-size: 1.5em;
    margin-bottom: 18px;
    color: #294166;
}
form.modern-form label {
    font-weight: 500;
    margin-top: 8px;
    display: block;
}
form.modern-form input[type="number"],
form.modern-form input[type="text"],
form.modern-form input[type="email"],
form.modern-form input[type="password"] {
    width: 95%;
    padding: 8px;
    margin: 5px 0 10px 0;
    border-radius: 10px;
    border: 1px solid #dadada;
    font-size: 1em;
}
button[type="submit"], .btn-link {
    background: #064e63;
    color: #fff;
    border: none;
    padding: 10px 0;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    width: 100%;
    margin: 18px 0 0 0;
    transition: background 0.2s;
    text-align: center;
    display: block;
    text-decoration: none;
}
button[type="submit"]:hover, .btn-link:hover {
    background: #04303d;
    font-family: inherit;
}

button[type="submit"], .calcb {
    background: #d72f64;
    color: #fff;
    border: none;
    padding: 10px 0;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    width: 100%;
    margin: 18px 0 0 0;
    transition: background 0.2s;
    text-align: center;
    display: block;
    text-decoration: none;
    font-family: inherit;
}

button[type="submit"]:hover, .calcb:hover {
    background: #8b1d40;
    font-family: inherit;
}


.result {
    background: #edf7ee;
    border-left: 4px solid #4caf50;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 1.1em;
    color: #206122;
}
ul { list-style: none; padding: 0;}
ul li {margin-bottom: 10px;}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}
th, td {
    border: 1px solid #d7dbe2;
    padding: 7px 4px;
    text-align: left;
    font-size: 0.85em
}
th {
    background: #f1f1f8;
    color: #294166;
    font-size: 0.77em;
}
@media (max-width: 500px) {
    .container {width: 98%;
        max-width: 95vw;
        padding: 10px;
        margin: 0 auto
    }
  
}
.export-btn {
    display: inline-block;
    background: #1c7c3a;
    color: #fff !important;
    border-radius: 8px;
    padding: 7px 16px 7px 10px;
    font-size: 0.77em;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 1px 6px rgba(60,150,70,0.07);
    margin-left: 12px;
}
.export-btn:hover {
    background: #115f2c;
    color: #fff;
}
.export-btn i {
    margin-right: 8px;
    font-size: 1.15em;
    vertical-align: middle;
}
.del-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 2px;
    outline: none;
}
.del-btn i {
    font-size: 0.9em;
    color: #ee5555;
    transition: color 0.2s;
}
.del-btn:hover i {
    color: #b81c1c;
}
.istoric {display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px;margin-top: 5px;} 
.account-info {background:#fff;padding:20px 12px 16px 12px;border-radius:13px;box-shadow:0 1px 10px #dadada33;max-width:100%;margin:20px auto;}
.account-info label {font-weight:500;color:#3578e5;}
.copy-btn {margin-left:8px;background:#1c7c3a;color:#fff;padding:3px 9px;border-radius:7px;border:none;cursor:pointer;font-size:0.77em;}
.copy-btn:active {background:#115f2c;}
.donate-section {margin-top:38px; padding: 18px 12px; background: #f4f4f9; border-radius: 13px;}
.del-btn {
    background:#ee5555;
    color:#fff;
    width:100%;
    padding:10px 0;
    font-weight:bold;
    border-radius: 10px;
    border: none;
    margin-top: 18px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.18s;
}
.del-btn:hover {background:#b81c1c;}
/* Stil input parole ca la form.modern-form */
.change-pass-form input[type="password"] {
    width: 95%;
    padding: 8px;
    margin-bottom: 9px;
    border-radius: 10px;
    border: 1px solid #dadada;
    font-size: 1em;
}
.change-pass-form button[type="submit"] {
    background: #3578e5;
    color: #fff;
    border: none;
    padding: 10px 0;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    width: 100%;
    transition: background 0.2s;
    margin-top: 2px;
}
.change-pass-form button[type="submit"]:hover {
    background: #2a5dab;
}
.calendar-container {
    display: flex;
    justify-content: flex-end;
}
.calendar-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(40,62,90,0.07), 0 1.5px 8px rgba(40,62,90,0.07);
    padding: 24px 18px;
    margin: 32px 0 32px 32px;
    min-width: 310px;
    max-width: 400px;
    height: fit-content;
    position: sticky;
    top: 30px;
}
.calendar-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
    font-size: 1.14rem;
}
.calendar-header button {
    background: #d7eaff; border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 1.2em; cursor: pointer;
    transition: background 0.17s;
}
.calendar-header button:hover { background: #c5e0fc; }
.calendar-table { width: 100%; border-collapse: collapse; text-align: center;}
.calendar-table th, .calendar-table td {
    padding: 6px 0; font-size: 1.02em; width: 14.2%;
}
.calendar-table th { color: #4489d9; font-weight: 600; background: #f5f8ff;}
.calendar-table td { background: #f9fafb;}
.calendar-table td.has-bonus {
    background: #e6ffe2;
    color: #26723e;
    font-weight: bold;
    border-radius: 10px;
}
.bonus-sum { font-size: 0.75em; font-weight: 500; color: #26723e; }
.calendar-total { font-weight: bold; margin-top: 10px; font-size: 1.08em;}
@media (max-width: 900px) {
    .calendar-container { justify-content: center; margin:0;}
    .calendar-card { margin: 20px auto 0 auto; position: static; max-width: 97vw;}
}
@media (max-width: 600px) {
    .calendar-card { padding: 14px 6px; min-width: 90vw;}
}

.calendar-widget {
    position: fixed;
    right: 100px;
    top: 24px;
    width: 390px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    padding: 15px;
    z-index: 10;
}
.calendar-header {
    display:flex; justify-content:space-between; align-items:center;
    margin-bottom: 10px; font-weight:bold;
}
.calendar-header button {
    border:none;background:#f0f0f0;border-radius:50%;width:30px;height:30px;cursor:pointer;
}
.calendar-table { width:100%; border-collapse:collapse;text-align:center; }
.calendar-table th, .calendar-table td { padding:5px;font-size:14px; }
.calendar-table th { background:#f7f7f7; }
.calendar-table td.has-bonus { background:#e7f7e1; font-weight:bold; border-radius:6px; }
.calendar-total { text-align:center;margin-top:10px;font-weight:bold; }
@media(max-width:900px){
    .calendar-widget{position:relative;margin:20px auto;top:auto;right:auto;width:100%;max-width:95vw;padding: 10px}
}

/* —— butoanele „Contul meu” + „Logout” pe același rând —— */
.account-actions {
    display: flex;          /* pune conținutul pe un singur rând */
    gap: 12px;              /* spațiu între butoane */
    align-items: center;    /* centrează vertical icoanele și etichetele */
    list-style: none;       /* elimină bulina din stânga (dacă există) */
    padding: 0;
    margin: 0;
}

/* Dacă vrei un stil diferit pentru linkul de logout: */
.account-actions .logout {
    background: #999;
}
/* —— link dezactivat („în lucru”) —— */
.btn-link.disabled {
    pointer-events: none;      /* nu îl poți apăsa */
    opacity: 0.55;             /* arată „estompat” */
    cursor: not-allowed;       /* cursor interzis */
}
.btn-link.disabled small {
    font-size: 0.85em;
    font-weight: 500;
}

/* —— logo centrat în container —— */
.logo {
    display: block;        /* îl transformă într-un element pe tot rândul */
    margin: 0 auto 24px;   /* centru + spațiu sub logo (24 px) */
    max-width: 70px;      /* ajustează lățimea maximă cum dorești */
    height: auto;          /* păstrează proporția */
}
.title {text-align: center;}

.edit-btn {
        display:inline-block;padding:2px 6px;background:#eee;border-radius:5px;cursor:pointer;
        margin-left:8px;font-size:0.77em;color:#3578e5;border:1px solid #3578e5;
    }
    .del-btn {
        background:#ee5555;color:#fff;padding:3px 9px;border:none;border-radius:8px;cursor:pointer;font-size:0.77em;
    }
    
/* Modern Date Input Styling */
input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    background-color: #ffffff;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Focus state */
input[type="date"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: #f8fafc;
}

/* Hover state */
input[type="date"]:hover {
    border-color: #bdc3c7;
    background-color: #f8fafc;
}

/* Calendar icon styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e");
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Firefox date input styling */
input[type="date"]::-moz-focus-inner {
    border: 0;
}

/* Alternative style with icon background */
.date-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.date-input-wrapper::before {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    input[type="date"] {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    input[type="date"] {
        background-color: #2c3e50;
        color: #ecf0f1;
        border-color: #34495e;
    }
    
    input[type="date"]:focus {
        background-color: #34495e;
        border-color: #3498db;
    }
    
    input[type="date"]:hover {
        background-color: #34495e;
        border-color: #7f8c8d;
    }
}

/* Custom styling for better browser compatibility */
.modern-date-input {
    position: relative;
    width: 100%;
}

.modern-date-input input[type="date"] {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    background-color: #ffffff;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modern-date-input::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.7;
}

.modern-date-input:hover::after {
    opacity: 1;
}

#pvpersonal {font-size: 1em; color:#d72f64; font-weight:bold;}

/* ——————  DataTables filter bar  —————— */
.dataTables_filter{
    margin: 0 0 12px;
    float: none !important;       /* aliniere pe tot rândul */
    text-align: left;
}
.dataTables_filter label{font-weight: 500;}
.dataTables_filter input{
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    padding: 4px 8px;
    max-width: 200px;
}
.chart-container{height:220px}
@media (max-width: 576px){          /* sub 576 px (telefoane) */
  .chart-container{height:45vw;}    /* ~45 % din lăţime */
}

@media (max-width: 576px){
  #historyTbl td, #historyTbl th{
    padding: .35rem .5rem;
  }
}
.card-recomandari {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px #2a7b3f15;
    max-width: 460px;
    margin: 22px auto 0 auto;
    padding: 18px 20px 16px 20px;
    font-family: 'Quicksand', 'Inter', Arial, sans-serif;
}
.card-reco-hd {
    font-size: 1.16em;
    margin-bottom: 8px;
    color: #3578e5;
    font-weight: bold;
}
.btn-link {
    display: inline-block;
    border-radius: 7px;
    background: #3578e5;
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 1em;
    transition: background 0.16s;
    border: none;
    cursor: pointer;
}
.btn-link:hover {
    background: #115f2c;
}
.reco-card ul {margin:0 0 8px 15px;padding:0;}
.mastership {max-width: 50%;}

