/* ========== MOBILE NAVBAR ========== */
.mobile-navbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, #1a1f36 0%, #2d1b4e 100%);
    z-index: 1060;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom);
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: #9ca3af;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    min-width: 60px;
}

.mobile-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: #a78bfa;
}

.mobile-nav-item.active {
    background: rgba(167, 139, 250, 0.1);
}

/* Center Button - Khởi Tạo */
.mobile-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #a78bfa;
    font-size: 10px;
    margin-top: -20px;
}

.mobile-nav-center .center-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    border: 3px solid #1a1f36;
    margin-bottom: 4px;
}

.mobile-nav-center .center-btn i {
    font-size: 26px;
    color: white;
}

.mobile-nav-center span {
    font-weight: 500;
}

/* Mobile Menu Panel */
.mobile-menu-panel {
    display: none;
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    z-index: 1055;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-menu-panel.show {
    display: block;
}

.mobile-panel {
    display: none;
    background: #1a1f36;
    border-radius: 20px 20px 0 0;
    max-height: 60vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.mobile-panel.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    background: #1a1f36;
    z-index: 1;
}

.mobile-panel-header span {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.mobile-panel-header .close-panel {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s;
}

.mobile-panel-header .close-panel:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.mobile-panel-content {
    padding: 12px 16px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.95);
    color: #1f2937;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
    font-size: 15px;
    margin-bottom: 8px;
    position: relative;
}

.mobile-menu-link i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: #6b7280;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background: white;
    transform: scale(0.98);
}

.mobile-menu-link.text-danger {
    color: #ef4444;
}

.mobile-menu-link.text-danger i {
    color: #ef4444;
}

/* Badge for menu items */
.menu-badge {
    position: absolute;
    right: 16px;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: white;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 600;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 70px;
    background: rgba(0,0,0,0.6);
    z-index: 1050;
    backdrop-filter: blur(2px);
}

.mobile-overlay.show {
    display: block;
}

/* Main Sidebar - Icon style */
.main-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 70px;
    height: 100vh;
    background: #1a1f36;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.main-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main-sidebar-logo {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-sidebar-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-sidebar-logo img {
    max-width: 40px;
    max-height: 40px;
}

.main-sidebar-logo .logo-text {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-sidebar-menu {
    list-style: none;
    padding: 16px 0;
    margin: 0;
    flex: 1;
}

.main-sidebar-menu .menu-item {
    margin-bottom: 4px;
}

.main-sidebar-menu .menu-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.main-sidebar-menu .menu-item a i {
    font-size: 22px;
    margin-bottom: 4px;
}

.main-sidebar-menu .menu-item a span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: nowrap;
}

.main-sidebar-menu .menu-item:hover a,
.main-sidebar-menu .menu-item.active a {
    color: white;
    background: rgba(255,255,255,0.05);
    border-left-color: #6366f1;
}

.main-sidebar-menu .menu-item.active a {
    background: rgba(99, 102, 241, 0.15);
}

/* Secondary Sidebar */
.secondary-sidebar {
    position: fixed;
    left: 70px;
    top: 0;
    width: 220px;
    height: 100vh;
    background: #242b45;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.secondary-sidebar.show {
    transform: translateX(0);
}

.secondary-sidebar-content {
    padding: 20px 0;
}

.submenu-panel {
    display: none;
}

.submenu-section {
    margin-bottom: 24px;
}

.submenu-header {
    padding: 0 20px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu-list li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.submenu-list li a i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
}

.submenu-list li a:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.submenu-list li.active a {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.3), transparent);
    color: white;
    border-left-color: #6366f1;
}

/* Page wrapper adjustment */
.page-wrapper-v2 {
    margin-left: 70px;
    transition: margin-left 0.3s ease;
}

.page-wrapper-v2.with-secondary {
    margin-left: 290px;
}

.page-wrapper-v2 .page-content {
    min-height: 100vh;
}

/* Layout Spacing V2 */
.layout-specing-v2 {
    padding: 24px;
}

/* Top Bar V2 */
.top-bar-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.top-bar-left .page-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left .page-info i {
    font-size: 20px;
}

.page-title-small {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.vps-count {
    color: #6b7280;
    font-size: 14px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 8px 16px;
    gap: 8px;
}

.search-box i {
    color: #9ca3af;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.btn-create {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-create:hover {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    transform: translateY(-1px);
}

/* Content Area */
.content-area {
    padding: 24px;
}

/* VPS Table */
.vps-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vps-table {
    width: 100%;
    border-collapse: collapse;
}

.vps-table thead {
    background: #f9fafb;
}

.vps-table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}

.vps-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.vps-table tbody tr:hover {
    background: #f9fafb;
}

.vps-name .vps-ip {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.vps-name .vps-label {
    font-size: 12px;
    color: #6b7280;
}

.time-left {
    color: #6b7280;
}

.time-left .days {
    font-weight: 600;
    color: #1f2937;
}

.vps-specs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vps-specs .spec {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #4b5563;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-suspended {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-expired {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 6px;
    color: #6b7280;
    transition: all 0.2s;
}

.btn-action:hover {
    background: #6366f1;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.empty-icon i {
    font-size: 36px;
    color: #9ca3af;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-deploy {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-deploy:hover {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    transform: translateY(-2px);
}

/* User Info in Top Bar */
.user-info-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-radius: 8px;
    color: #10b981;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-balance:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.user-balance i {
    font-size: 18px;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-dropdown-toggle:hover {
    background: #e5e7eb;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
}

.user-dropdown-menu a:hover {
    background: #f9fafb;
    color: #6366f1;
}

.user-dropdown-menu a i {
    font-size: 18px;
    width: 20px;
}

.user-dropdown-menu .divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

.user-dropdown-menu .logout {
    color: #ef4444;
}

.user-dropdown-menu .logout:hover {
    background: rgba(239, 68, 68, 0.05);
    color: #dc2626;
}

/* Dashboard Stats for new layout */
.stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card-v2 {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card-v2 .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-card-v2 .stat-icon.blue {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.stat-card-v2 .stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-card-v2 .stat-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-card-v2 .stat-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.stat-card-v2 .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-card-v2 .stat-label {
    font-size: 14px;
    color: #6b7280;
}

/* Responsive */
/* Desktop Large (> 1200px) - Default styles above */

/* Desktop Small / Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
    .secondary-sidebar {
        width: 200px;
    }
    
    .page-wrapper-v2.with-secondary {
        margin-left: 270px;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .search-box input {
        width: 160px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .main-sidebar {
        width: 60px;
    }
    
    .main-sidebar-menu .menu-item a span {
        font-size: 7.9px;
    }
    
    .secondary-sidebar {
        left: 60px;
        width: 220px;
    }
    
    .page-wrapper-v2 {
        margin-left: 60px;
    }
    
    .page-wrapper-v2.with-secondary {
        margin-left: 280px;
    }
    
    .content-area {
        padding: 16px;
    }
    
    .top-bar-v2 {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .search-box input {
        width: 140px;
    }
    
    .btn-create {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .user-name {
        display: none;
    }
    
    .page-title {
        font-size: 18px;
    }
    
    .page-subtitle {
        font-size: 13px;
    }
    
    .breadcrumb-modern {
        display: none;
    }
    
    /* Table responsive */
    .vps-table th:nth-child(3),
    .vps-table td:nth-child(3) {
        display: none;
    }
    
    .vps-specs {
        max-width: 150px;
    }
    
    /* Stats grid */
    .stats-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card-v2 .stat-value {
        font-size: 24px;
    }
}

/* Mobile Landscape / Small Tablet (576px - 767px) */
@media (max-width: 767px) {
    /* Show mobile navbar, hide desktop sidebar */
    .mobile-navbar {
        display: flex;
    }
    
    .main-sidebar {
        display: none;
    }
    
    .secondary-sidebar {
        display: none;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    /* Page wrapper */
    .page-wrapper-v2,
    .page-wrapper-v2.with-secondary {
        margin-left: 0;
        margin-bottom: 70px;
        padding-bottom: 20px;
    }
    
    .content-area {
        padding: 16px;
    }
    
    /* Top bar mobile */
    .top-bar-v2 {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 12px 16px;
    }
    
    .top-bar-left {
        justify-content: space-between;
    }
    
    .top-bar-right {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-box {
        width: 100%;
        order: 2;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .btn-create {
        width: 100%;
        text-align: center;
        order: 1;
    }
    
    .user-info-topbar {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
        order: 0;
        margin-bottom: 8px;
    }
    
    .user-balance {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .user-dropdown-toggle {
        padding: 4px 8px;
    }
    
    .user-name {
        display: none;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    /* Page header mobile */
    .page-header {
        margin-bottom: 16px;
    }
    
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .page-header-left {
        width: 100%;
    }
    
    .home-btn {
        width: 38px;
        height: 38px;
    }
    
    .page-title {
        font-size: 18px;
    }
    
    .page-subtitle {
        font-size: 12px;
    }
    
    .breadcrumb-modern {
        display: none;
    }
    
    /* Table mobile */
    .vps-table-container {
        border-radius: 8px;
        overflow-x: auto;
    }
    
    .vps-table {
        min-width: 500px;
    }
    
    .vps-table th,
    .vps-table td {
        padding: 12px;
        font-size: 13px;
    }
    
    .vps-table th:nth-child(3),
    .vps-table td:nth-child(3),
    .vps-table th:nth-child(4),
    .vps-table td:nth-child(4) {
        display: none;
    }
    
    .vps-specs {
        display: none;
    }
    
    .action-buttons {
        gap: 4px;
    }
    
    .btn-action {
        width: 28px;
        height: 28px;
    }
    
    /* Stats grid mobile */
    .stats-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card-v2 {
        padding: 16px;
    }
    
    .stat-card-v2 .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .stat-card-v2 .stat-value {
        font-size: 22px;
    }
    
    .stat-card-v2 .stat-label {
        font-size: 12px;
    }
    
    /* Empty state mobile */
    .empty-state {
        padding: 40px 16px;
    }
    
    .empty-icon {
        width: 60px;
        height: 60px;
    }
    
    .empty-icon i {
        font-size: 28px;
    }
    
    .empty-state h3 {
        font-size: 18px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
    
    .btn-deploy {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Status badges mobile */
    .status-badge {
        padding: 3px 8px;
        font-size: 11px;
    }
}

/* Mobile Portrait (< 576px) */
@media (max-width: 575px) {
    .main-sidebar-menu .menu-item a span {
        font-size: 8px;
        letter-spacing: 0;
    }
    
    .main-sidebar-menu .menu-item a i {
        font-size: 18px;
    }
    
    .secondary-sidebar {
        width: 100%;
    }
    
    .content-area {
        padding: 12px;
    }
    
    .top-bar-v2 {
        padding: 10px 12px;
    }
    
    .page-title {
        font-size: 16px;
    }
    
    .page-subtitle {
        font-size: 11px;
    }
    
    .home-btn {
        width: 36px;
        height: 36px;
    }
    
    .search-box {
        padding: 6px 12px;
    }
    
    .search-box input {
        font-size: 13px;
    }
    
    .btn-create {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Stats single column on very small screens */
    .stats-grid-v2 {
        grid-template-columns: 1fr;
    }
    
    /* Table extra small */
    .vps-table {
        min-width: 400px;
    }
    
    .vps-table th,
    .vps-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .vps-name .vps-ip {
        font-size: 13px;
    }
    
    .vps-name .vps-label {
        font-size: 11px;
    }
    
    /* User dropdown */
    .user-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 70px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    /* Empty state */
    .empty-state {
        padding: 30px 12px;
    }
    
    .empty-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 16px;
    }
    
    .empty-icon i {
        font-size: 24px;
    }
    
    .empty-state h3 {
        font-size: 16px;
    }
    
    .empty-state p {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .btn-deploy {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
}

/* Page Header */
.page-header {
    margin-bottom: 24px;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
}

.home-btn:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.page-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.breadcrumb-modern a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-modern a:hover {
    color: #6366f1;
}

.breadcrumb-modern span {
    color: #9ca3af;
}

.breadcrumb-modern .current {
    color: #6366f1;
    font-weight: 500;
}

/* ==================== */
/* Additional Responsive Styles for Common Components */
/* ==================== */

/* Card Responsive */
.card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
}

/* Form Responsive */
.form-group {
    margin-bottom: 16px;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Button Responsive */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-1px);
}

/* Modal Responsive */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e5e7eb;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
}

/* Alert Responsive */
.alert {
    border-radius: 10px;
    padding: 14px 18px;
}

/* Table Card View for Mobile */
.table-mobile-cards {
    display: none;
}

.mobile-card-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-card-title {
    font-weight: 600;
    color: #1f2937;
}

.mobile-card-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.mobile-card-label {
    color: #6b7280;
}

.mobile-card-value {
    color: #1f2937;
    font-weight: 500;
}

.mobile-card-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Responsive Additional Styles */
@media (max-width: 991px) {
    .card-body {
        padding: 16px;
    }
    
    .card-header,
    .card-footer {
        padding: 14px 16px;
    }
    
    .btn {
        padding: 10px 16px;
    }
}

@media (max-width: 767px) {
    .card {
        border-radius: 10px;
    }
    
    .card-body {
        padding: 14px;
    }
    
    .card-header,
    .card-footer {
        padding: 12px 14px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn {
        padding: 12px 16px;
        width: 100%;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        margin-bottom: 8px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: 16px;
    }
    
    /* Show mobile cards, hide desktop table */
    .table-mobile-cards {
        display: block;
    }
    
    .table-desktop {
        display: none;
    }
    
    /* Form layout */
    .row.g-3 > [class*='col-'] {
        margin-bottom: 12px;
    }
    
    /* Alert */
    .alert {
        padding: 12px 14px;
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .card-body {
        padding: 12px;
    }
    
    .card-header,
    .card-footer {
        padding: 10px 12px;
    }
    
    .modal-header .modal-title {
        font-size: 16px;
    }
    
    .mobile-card-item {
        padding: 14px;
        margin-bottom: 10px;
    }
    
    .mobile-card-row {
        flex-direction: column;
        gap: 2px;
    }
    
    .mobile-card-value {
        font-size: 14px;
    }
}

/* Utility classes for responsive */
@media (max-width: 767px) {
    .d-mobile-none {
        display: none !important;
    }
    
    .d-mobile-block {
        display: block !important;
    }
    
    .d-mobile-flex {
        display: flex !important;
    }
    
    .text-mobile-center {
        text-align: center !important;
    }
    
    .w-mobile-100 {
        width: 100% !important;
    }
    
    .mb-mobile-3 {
        margin-bottom: 1rem !important;
    }
}

@media (min-width: 768px) {
    .d-desktop-none {
        display: none !important;
    }
    
    .d-desktop-block {
        display: block !important;
    }
    
    .d-desktop-flex {
        display: flex !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .form-control,
    .menu-item a,
    .submenu-list li a {
        min-height: 44px; /* iOS minimum tap target */
    }
    
    .btn-action {
        min-width: 36px;
        min-height: 36px;
    }
    
    .action-buttons {
        gap: 8px;
    }
}

/* High contrast / Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed in the future */
}

/* Print styles */
@media print {
    .main-sidebar,
    .secondary-sidebar,
    .top-bar-v2,
    .sidebar-overlay,
    .btn-action,
    .action-buttons {
        display: none !important;
    }
    
    .page-wrapper-v2,
    .page-wrapper-v2.with-secondary {
        margin-left: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .content-area {
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
