/*
|==========================================================================
| PREMIUM TOPBAR
|==========================================================================
*/

.topbar{
    position:sticky;
    top:0;
    z-index:1020;

    min-height:88px;
    padding:16px 24px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    background:rgba(255,255,255,.72);
    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);

    border-bottom:1px solid rgba(255,255,255,.55);

    box-shadow:
    0 4px 20px rgba(15,23,42,.04);
}

/*
|==========================================================================
| LEFT
|==========================================================================
*/

.topbar-left{
    flex:1;

    display:flex;
    align-items:center;
    gap:16px;

    min-width:0;
}

/*
|==========================================================================
| SEARCH BAR
|==========================================================================
*/

.topbar-search{
    position:relative;

    flex:1;
    max-width:520px;

    height:56px;
    padding:0 18px;

    border-radius:20px;

    display:flex;
    align-items:center;
    gap:12px;

    background:rgba(255,255,255,.82);

    border:1px solid rgba(255,255,255,.65);

    box-shadow:
    0 4px 14px rgba(15,23,42,.05);

    transition:.3s ease;
}

.topbar-search:hover{
    transform:translateY(-1px);

    box-shadow:
    0 10px 20px rgba(15,23,42,.06);
}

.topbar-search:focus-within{
    border-color:rgba(79,70,229,.35);

    box-shadow:
    0 0 0 5px rgba(79,70,229,.08),
    0 12px 25px rgba(15,23,42,.08);

    background:#fff;
}

.topbar-search i{
    width:18px;
    height:18px;
    color:#94a3b8;

    flex-shrink:0;
}

.topbar-search input{
    flex:1;

    border:none;
    background:none;
    outline:none;

    font-size:14px;
    font-weight:500;

    color:var(--dark-color);
}

.topbar-search input::placeholder{
    color:#94a3b8;
}

/*
|==========================================================================
| CENTER LIVE TIME
|==========================================================================
*/

.topbar-center{
    flex:0 0 auto;

    display:flex;
    align-items:center;
    justify-content:center;

    margin:0 18px;
}

.live-datetime-card{
    min-width:250px;
    height:58px;

    padding:0 18px;

    border-radius:20px;

    display:flex;
    align-items:center;
    gap:14px;

    color: var(--secondary-color);

    position:relative;
    overflow:hidden;

}

.live-datetime-card::before{
    content:"";

    position:absolute;

    width:120px;
    height:120px;

    border-radius:50%;

    top:-45px;
    right:-30px;

    background:rgba(255,255,255,.08);
}

.time-icon{
    width:42px;
    height:42px;
color: var(--primary-color);
    border-radius:14px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(255,255,255,.14);

    backdrop-filter:blur(10px);

    flex-shrink:0;
}

.time-icon i{
    width:20px;
    height:20px;
}

.time-content h4{
    margin:0;

    font-size:17px;
    font-weight:800;

    line-height:1;

color: var(--primary-color);}

.time-content p{
    margin:5px 0 0;

    font-size:12px;
    font-weight:500;

    opacity:.92;

    color: var(--secondary-color);

}

/*
|==========================================================================
| RIGHT
|==========================================================================
*/

.topbar-right{
    display:flex;
    align-items:center;
    gap:12px;
}

/*
|==========================================================================
| ICON BUTTONS
|==========================================================================
*/

.icon-btn{
    width:54px;
    height:54px;

    border:none;
    border-radius:18px;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(255,255,255,.82);

    border:1px solid rgba(255,255,255,.65);

    transition:.28s ease;

    box-shadow:
    0 4px 12px rgba(15,23,42,.04);

    color:#475569;

    flex-shrink:0;
}

.icon-btn:hover{
    transform:translateY(-2px);

    color:var(--primary-color);

    box-shadow:
    0 12px 24px rgba(15,23,42,.08);
}

/*
|==========================================================================
| CREATE BUTTON
|==========================================================================
*/

.quick-create-btn{
    height:54px;
    padding:0 22px;

    border:none;
    border-radius:18px;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    color:#fff;
    font-size:14px;
    font-weight:700;

    white-space:nowrap;

    background:linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );

    box-shadow:
    0 14px 28px rgba(79,70,229,.24);

    transition:.28s ease;
}

.quick-create-btn:hover{
    transform:translateY(-2px);

    box-shadow:
    0 18px 34px rgba(79,70,229,.28);
}

/*
|==========================================================================
| NOTIFICATION
|==========================================================================
*/

.notification-btn{
    position:relative;
}

.notif-dot{
    position:absolute;

    top:13px;
    right:13px;

    width:10px;
    height:10px;

    border-radius:50%;

    background:var(--danger-color);

    border:2px solid #fff;
}

/*
|==========================================================================
| PROFILE
|==========================================================================
*/

.profile-dropdown{
    position:relative;
}

.profile-btn{
    border:none;
    cursor:pointer;

    padding:8px 14px;

    border-radius:22px;

    display:flex;
    align-items:center;
    gap:12px;

    background:rgba(255,255,255,.82);

    border:1px solid rgba(255,255,255,.65);

    box-shadow:
    0 4px 12px rgba(15,23,42,.04);

    transition:.28s ease;
}

.profile-btn:hover{
    transform:translateY(-2px);

    box-shadow:
    0 12px 24px rgba(15,23,42,.08);
}

/*
|==========================================================================
| AVATAR
|==========================================================================
*/

.avatar-circle{
    width:46px;
    height:46px;

    border-radius:16px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#fff;
    font-size:15px;
    font-weight:800;

    background:linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );

    box-shadow:
    0 10px 18px rgba(79,70,229,.22);
}

/*
|==========================================================================
| PROFILE INFO
|==========================================================================
*/

.profile-info h6{
    margin:0;

    font-size:14px;
    font-weight:700;

    color:var(--dark-color);
}

.profile-info span{
    font-size:12px;
    color:#64748b;
}

/*
|==========================================================================
| PROFILE MENU
|==========================================================================
*/

.profile-menu{
    position:absolute;

    top:110%;
    right:0;

    width:230px;

    padding:12px;

    border-radius:22px;

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,.7);

    box-shadow:
    0 20px 40px rgba(15,23,42,.10);

    opacity:0;
    visibility:hidden;

    transform:translateY(10px);

    transition:.28s ease;
}

.profile-menu.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.profile-menu a{
    display:flex;
    align-items:center;
    gap:12px;

    padding:13px 14px;

    border-radius:14px;

    text-decoration:none;

    font-size:14px;
    font-weight:600;

    color:#334155;

    transition:.22s ease;
}

.profile-menu a:hover{
    background:#f8fafc;
    color:var(--primary-color);
}

.logout-link{
    color:var(--danger-color) !important;
}

.logout-link:hover{
    background:#fef2f2 !important;
}

/*
|==========================================================================
| TABLET
|==========================================================================
*/

@media(max-width:1300px){

.topbar-center{
    display:none;
}

}

/*
|==========================================================================
| MOBILE
|==========================================================================
*/

@media(max-width:768px){

.topbar{
    min-height:68px;
    padding:10px 12px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    flex-wrap:nowrap;
    gap:10px;
}

/* LEFT */

.topbar-left{
    flex:1;

    display:flex;
    align-items:center;
    gap:10px;

    min-width:0;
}

/* SIDEBAR BUTTON */

#sidebarToggle{
    width:38px;
    height:38px;
    min-width:38px;

    border-radius:12px;
}

/* SEARCH */

.topbar-search{
    flex:1;
    min-width:0;

    max-width:100%;

    height:40px;

    padding:0 12px;

    border-radius:14px;

    gap:8px;

    background:#f8fafc;
    border:1px solid #e5e7eb;
}

.topbar-search i{
    width:15px;
    height:15px;
}

.topbar-search input{
    font-size:12px;
}

.topbar-search input::placeholder{
    font-size:11px;
}

/* HIDE CENTER */

.topbar-center{
    display:none;
}

/* RIGHT */

.topbar-right{
    display:flex;
    align-items:center;
    gap:8px;

    flex-shrink:0;
}

/* HIDE CREATE */

.quick-create-btn{
    display:none;
}

/* ICON BUTTONS */

.icon-btn{
    width:38px;
    height:38px;
    min-width:38px;

    border-radius:12px;
}

/* HIDE CALENDAR */

.calendar-dropdown-wrapper {
    display: none !important;
}

/* NOTIFICATION */

.notif-dot{
    top:8px;
    right:8px;

    width:8px;
    height:8px;
}

/* PROFILE */

.profile-btn{
    padding:4px;
    border-radius:14px;
}

/* HIDE TEXT */

.profile-info,
.profile-btn .material-symbols-outlined:last-child,
.profile-btn i[data-lucide="chevron-down"]{
    display:none;
}

/* SMALL AVATAR */

.avatar-circle{
    width:36px;
    height:36px;

    border-radius:12px;

    font-size:13px;
}

}

/*
|==========================================================================
| CALENDAR DROPDOWN (PREMIUM VISUALS & GLASSMORPHISM)
|==========================================================================
*/

.calendar-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.calendar-menu {
    position: absolute;
    top: 110%;
    right: 0;
    width: 350px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 18px;
    z-index: 1050;
    display: none;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .calendar-menu {
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.calendar-header h6 {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    color: var(--dark-color);
}

.calendar-header button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
}

.calendar-header button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

[data-theme="dark"] .calendar-header button {
    color: #9ca3af;
}

[data-theme="dark"] .calendar-header button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-color);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    color: var(--dark-color);
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-color);
}

.calendar-day.prev-month,
.calendar-day.next-month {
    color: #94a3b8;
    opacity: 0.4;
}

[data-theme="dark"] .calendar-day.prev-month,
[data-theme="dark"] .calendar-day.next-month {
    color: #4b5563;
}

.calendar-day.today {
    background: rgba(79, 70, 229, 0.12);
    border: 1px dashed var(--primary-color);
    font-weight: 700;
    color: var(--primary-color);
}

.calendar-day.selected {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.calendar-day.has-event::after {
    content: "";
    position: absolute;
    bottom: 4px;
    width: 5px;
    height: 5px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.calendar-day.selected.has-event::after {
    background-color: #ffffff;
}

.calendar-events-section {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 14px;
    margin-top: 14px;
}

[data-theme="dark"] .calendar-events-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-events-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-events-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 2px;
}

/* Custom Scrollbar for Events List */
.calendar-events-list::-webkit-scrollbar {
    width: 4px;
}
.calendar-events-list::-webkit-scrollbar-track {
    background: transparent;
}
.calendar-events-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
[data-theme="dark"] .calendar-events-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-event-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-left: 4px solid var(--primary-color);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.2s ease;
}

[data-theme="dark"] .calendar-event-item {
    background: rgba(255, 255, 255, 0.02);
}

.calendar-event-item:hover {
    background: rgba(79, 70, 229, 0.05);
    transform: translateX(2px);
}

[data-theme="dark"] .calendar-event-item:hover {
    background: rgba(79, 70, 229, 0.1);
}

.calendar-event-time {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 10px;
    text-transform: uppercase;
}

.calendar-event-title {
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

.calendar-event-client {
    color: #64748b;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

[data-theme="dark"] .calendar-event-client {
    color: #9ca3af;
}

.calendar-no-events {
    text-align: center;
    padding: 24px 0;
    color: #94a3b8;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.calendar-no-events span {
    opacity: 0.4;
}

.calendar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 12px;
    margin-top: 12px;
    gap: 10px;
}

[data-theme="dark"] .calendar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-footer-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.calendar-footer-link:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.calendar-quick-btn {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.calendar-quick-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}