/* PTM Sidebar Styles */
.ptm-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #fff 0%, #fff 100%) !important;
    color: #ecf0f1;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
}

.ptm-sidebar.open {
    transform: translateX(0);
}

.ptm-sidebar.collapsed {
    transform: translateX(-100%);
}

.ptm-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ptm-logo h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #f39c12;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);

}
.ptm-logo{
    margin-bottom: 0px !important;
}

.ptm-sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ptm-sidebar-toggle span {
    width: 20px;
    height: 2px;
    background: #ecf0f1;
    transition: all 0.3s ease;
}

.ptm-sidebar-content {
    padding: 20px 0;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.ptm-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.ptm-user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #f39c12;
}

.ptm-user-details {
    flex: 1;
}

.ptm-user-name {
    font-weight: 600;
    font-size: 1rem;
    color: #ecf0f1;
    margin-bottom: 2px;
}

.ptm-user-role {
    font-size: 0.85rem;
    color: #bdc3c7;
}

.ptm-sidebar-nav {
    flex: 1;
    padding: 0 10px;
}

.ptm-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.ptm-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.ptm-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    transform: translateX(4px);
}

.ptm-nav-link.active {
    background: #fff !important;
    color: #F0A500 !important;
    font-weight: 600;
}

.ptm-nav-icon {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.ptm-nav-text {
    font-size: 0.95rem;
    color:#000 !important;
    font-weight:400 !important;
}

.ptm-sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.ptm-version {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.ptm-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ptm-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Header */
.ptm-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    color: #ecf0f1;
    z-index: 999;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ptm-mobile-header .ptm-logo h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f39c12;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.ptm-logo span{
    color: #000;
font-family: Archia;
font-size: 16px;
font-style: normal;
font-weight: 600;
line-height: normal;
}
.ptm-sidebar-toggle{
    display: none !important;
}

.ptm-mobile-hamburger {
    background: #F0A500 !important;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ptm-mobile-hamburger span {
    width: 24px;
    height: 3px;
    background: #ecf0f1;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.ptm-mobile-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.ptm-mobile-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.ptm-mobile-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main content adjustment */
.ptm-main-with-sidebar {
    margin-left: 0;
    transition: margin-left 0.3s ease;
    padding-top: 0;
}

.ptm-main-with-sidebar.sidebar-open {
    margin-left: 280px;
}

.ptm-main-with-sidebar.sidebar-collapsed {
    margin-left: 0;
}

/* Mobile responsiveness */

    .ptm-sidebar {
        transform: translateX(-100%);
        width: 100%;
        max-width: 320px;
    }
    
    .ptm-sidebar.open {
        transform: translateX(0);
    }
    
    .ptm-main-with-sidebar {
        margin-left: 0;
        padding-top: 60px;
    }
    
    .ptm-main-with-sidebar.sidebar-open {
        margin-left: 0;
    }
    
    .ptm-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .ptm-sidebar-header {
        padding: 15px 20px;
    }
    
    .ptm-sidebar-content {
        padding: 15px 0;
    }
    
    .ptm-user-info {
        padding: 0 20px 15px;
    }
    
    .ptm-sidebar-nav {
        padding: 0 15px;
    }
    
    .ptm-sidebar-footer {
        padding: 15px 20px;
    }
}

/* Tablet responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
    .ptm-sidebar {
        width: 260px;
    }
    
    .ptm-main-with-sidebar.sidebar-open {
        margin-left: 260px;
    }
}

/* Desktop responsiveness */
@media (min-width: 1025px) {
    .ptm-sidebar {
        width: 280px;
    }
    
    .ptm-main-with-sidebar.sidebar-open {
        margin-left: 280px;
    }
}

/* Animation for sidebar toggle */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}
@media (min-width: 1025px) {
    .ptm-sidebar {
        left: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        position: fixed;
        z-index: 1000;
        transform: none !important;
        box-shadow: 2px 0 10px rgba(0,0,0,0.08);
        border-right: 1px solid #f0f0f0;
        background: #fff;
    }
    .ptm-main-with-sidebar {
        margin-left: 280px !important;
        padding-top: 0 !important;
    }
    .ptm-sidebar-overlay {
        display: none !important;
    }
}