
body{
    background:#f5f7fb;
}

.sidebar{
    background:#0b1d4a;
    width:250px;
    box-shadow:4px 0 25px rgba(0,0,0,.15);
}

.sidebar-logo{
    width:70px;
    height:70px;
    margin:auto;
    border-radius:20px;
    background:linear-gradient(
        135deg,
        #2563eb,
        #7c3aed
    );
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:32px;
}

.sidebar-menu{
    padding:0 12px;
}

.sidebar-menu .nav-item{
    margin-bottom:8px;
}

.sidebar-menu .nav-link{
    display:flex;
    align-items:center;
    gap:12px;
    color:#cbd5e1;
    padding:14px 16px;
    border-radius:14px;
    transition:.3s;
    font-weight:500;
}

.sidebar-menu .nav-link i{
    font-size:18px;
    width:22px;
}

.sidebar-menu .nav-link:hover{
    background:rgba(255,255,255,.08);
    color:#fff;
}

.sidebar-menu .nav-link.active{
    background:linear-gradient(
        135deg,
        #2563eb,
        #4f46e5
    );
    color:#fff;
    box-shadow:0 8px 20px rgba(37,99,235,.35);
}

.sidebar-menu .nav-link.active i{
    color:#fff;
}

.stat-card{
    background:#fff;
    border-radius:20px;
    padding:25px;
    display:flex;
    align-items:center;
    gap:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:all .3s ease;
    height:100%;
}

.stat-card:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(0,0,0,.12);
}

.icon-box{
    width:65px;
    height:65px;
    min-width:65px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:28px;
}

.bg-primary{
    background:linear-gradient(135deg,#2563eb,#4f46e5);
}

.bg-success{
    background:linear-gradient(135deg,#10b981,#059669);
}

.bg-warning{
    background:linear-gradient(135deg,#f59e0b,#d97706);
}

.stat-card h2{
    font-size:2rem;
    font-weight:700;
}

.stat-card h6{
    font-weight:600;
    letter-spacing:.3px;
}

.quick-card{
    background:white;
    border-radius:20px;
    padding:25px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,.05);
    transition:.3s;
}

.quick-card:hover{
    transform:scale(1.03);
}

.custom-table{
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.05);
}

.custom-table table{
    margin:0;
    min-width: 100%;
}

.custom-table thead{
    background:#2563eb;
    color:white;
}

.page-header{
    background:linear-gradient(
        135deg,
        #2563eb,
        #7c3aed
    );
    color:white;
    padding:30px;
    border-radius:25px;
    margin-bottom:30px;
}
.glass-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    color: #0b1d4a;
}
#editRestaurantModal .modal-body {
    max-height: 70vh; /* 70% of viewport height */
    overflow-y: auto;
}

.sidebar .nav-link { color: #fff; }
.sidebar .nav-link.active { background-color: #162b66; border-radius: 0.25rem; }
.btn-outline-primary { border-color: #0b1d4a; color: #0b1d4a; }
.btn-outline-primary:hover { background-color: #0b1d4a; color: #fff; }

.password-wrapper {
    position: relative;
}
.eye-icon {
    position: absolute;
    right: 12px;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
}
.action-card{
    background:#fff;
    border-radius:20px;
    padding:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    height:100%;
}

.action-header{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:15px;
}

.action-header i{
    font-size:24px;
    color:#2563eb;
}

.action-header h5{
    margin:0;
    font-weight:700;
}

.action-btn{
    width:100%;
    border:none;
    background:#f8fafc;
    border-radius:16px;
    padding:20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    transition:.3s;
    cursor:pointer;
}

.action-btn i{
    font-size:28px;
    color:#2563eb;
}

.action-btn span{
    font-weight:600;
    color:#1e293b;
}

.action-btn:hover{
    background:linear-gradient(
        135deg,
        #2563eb,
        #4f46e5
    );
    transform:translateY(-4px);
}

.action-btn:hover i,
.action-btn:hover span{
    color:#fff;
}


.custom-table th{
    font-weight:600;
    color:#475569;
    border:none;
    vertical-align: middle;
}

.custom-table td{
    padding:18px 16px;
    border-color:#f1f5f9;
    vertical-align: middle;
}

.custom-table tbody tr:hover{
    background:#f8fafc;
}

.user-avatar{
    width:42px;
    height:42px;
    border-radius:12px;
    background:linear-gradient(
        135deg,
        #2563eb,
        #7c3aed
    );
    color:#fff;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
}

.btn-light{
    background:#f8fafc;
    border:none;
}

.btn-light:hover{
    background:#e2e8f0;
}
.modern-modal{
    border:none;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,.15);
}

.modern-modal .modal-header{
    padding:25px 30px 10px;
}

.modern-modal .modal-body{
    padding:20px 30px;
}

.modern-modal .modal-footer{
    padding:15px 30px 25px;
}

.modern-input{
    height:50px;
    border:1px solid #e2e8f0;
    border-radius:14px;
    background:#f8fafc;
    transition:.3s;
}

.modern-input:focus{
    background:#fff;
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.1);
}

.password-wrapper{
    position:relative;
}

.password-wrapper .eye-icon{
    position:absolute;
    right:15px;
    top:52px;
    cursor:pointer;
    color:#64748b;
}

.modal-backdrop.show{
    opacity:.45;
}
.restaurant-row{
    display:flex;
    align-items:center;
    gap:15px;
    padding:12px 0;
    border-bottom:1px solid #eef2f7;
}

.restaurant-row:last-child{
    border-bottom:none;
}
.restaurant-avatar{
    width:42px;
    height:42px;
    border-radius:12px;
    background:linear-gradient(
        135deg,
        #10b981,
        #059669
    );
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}

.modern-search{
    width:250px;
    padding-left:40px;
    border-radius:14px;
    border:1px solid #e2e8f0;
    height:45px;
}

.search-icon{
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    color:#94a3b8;
    z-index:10;
}

.table tbody tr:hover{
    background:#f8fafc;
}

.badge{
    padding:8px 12px;
    font-weight:500;
}
.chart-card{
    background:#fff;
    padding:25px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}
.badge{
    padding:8px 12px;
    border-radius:10px;
    font-weight:600;
}

.report-card{
    background:#fff;
    border-radius:20px;
    padding:25px;
    display:flex;
    align-items:center;
    gap:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.report-icon{
    width:65px;
    height:65px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:28px;
}

.dashboard-widget{
    background:#fff;
    border-radius:20px;
    padding:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.widget-title{
    font-weight:700;
    margin-bottom:20px;
}


.restaurant-avatar.danger{
    background:linear-gradient(135deg,#ef4444,#dc2626);
}
.subscription-card{
    background:#fff;
    border-radius:22px;
    padding:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;
    height:100%;
}

.subscription-card:hover{
    transform:translateY(-5px);
    box-shadow:0 20px 40px rgba(0,0,0,.12);
}

.subscription-logo{
    width:60px;
    height:60px;
    border-radius:16px;
    object-fit:cover;
}

.subscription-logo-placeholder{
    width:60px;
    height:60px;
    border-radius:16px;
    background:#f1f5f9;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    color:#64748b;
}

.subscription-info{
    margin-top:15px;
}

.info-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 0;
    border-bottom:1px solid #eef2f7;
}

.info-row:last-child{
    border-bottom:none;
}

.modern-select{
    min-width:180px;
    border-radius:14px;
    border:1px solid #e2e8f0;
}

.subscription-card .badge{
    padding:8px 12px;
    border-radius:10px;
}
.location-column {
    min-width: 180px;
}

.progress-column {
    min-width: 180px;
}

.actions-column {
    min-width: 160px;
    white-space: nowrap;
}
.actions-column .btn{
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.actions-column form{
    margin: 0;
}


.custom-table .btn-group-custom {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.custom-table .badge {
    font-size: 12px;
}
.custom-table th,
.custom-table td{
    white-space: nowrap;
    vertical-align: middle;
}

.restaurant-name-column{
    min-width:250px;
}

.progress-column{
    min-width:170px;
}

#reader{
    width:320px;
    margin:auto;
    display:none;
    overflow:hidden;
    background:transparent !important;
    min-height:0 !important;
}
.subscription-toolbar{
    display:flex;
    justify-content:space-between;
    gap:15px;
    flex-wrap:wrap;
}

.search-box{
    position:relative;
    flex:1;
    min-width:280px;
}

.search-box i{
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    color:#94a3b8;
}

.search-box input{
    padding-left:45px;
    height:52px;
    border-radius:16px;
    border:none;
    background:#fff;
    box-shadow:0 5px 20px rgba(0,0,0,.05);
}

.modern-sort{
    width:220px;
    border-radius:16px;
    border:none;
    height:52px;
    box-shadow:0 5px 20px rgba(0,0,0,.05);
}

/* Subscription Card */

.subscription-modern-card{
    background:#fff;
    border-radius:24px;
    padding:24px;
    box-shadow:0 12px 30px rgba(15,23,42,.08);
    transition:.35s ease;
    height:100%;
    border:1px solid #eef2f7;
}

.subscription-modern-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 45px rgba(15,23,42,.12);
}

.subscription-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:15px;
}

.subscription-top h5{
    margin:0;
    font-weight:700;
    color:#0f172a;
}

.subscription-top small{
    color:#64748b;
}

.subscription-modern-logo{
    width:64px;
    height:64px;
    border-radius:18px;
    object-fit:cover;
    border:2px solid #eef2f7;
}

.subscription-modern-placeholder{
    width:64px;
    height:64px;
    border-radius:18px;
    background:linear-gradient(
        135deg,
        #2563eb,
        #7c3aed
    );
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:26px;
}

.subscription-divider{
    height:1px;
    background:#eef2f7;
    margin:20px 0;
}

.subscription-details{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.subscription-details span{
    display:block;
    font-size:13px;
    color:#94a3b8;
}

.subscription-details strong{
    font-size:15px;
    color:#0f172a;
}

.subscription-modern-card .badge{
    padding:10px 14px;
    border-radius:12px;
    font-size:12px;
    font-weight:600;
}

.bg-danger{
    background:linear-gradient(
        135deg,
        #ef4444,
        #dc2626
    ) !important;
}

.bg-success{
    background:linear-gradient(
        135deg,
        #10b981,
        #059669
    ) !important;
}

.bg-warning{
    background:linear-gradient(
        135deg,
        #f59e0b,
        #d97706
    ) !important;
}

.bg-secondary{
    background:linear-gradient(
        135deg,
        #64748b,
        #475569
    ) !important;
}