/* Custom optimized styles for Hanel Proxy */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #495057;
}

/* Sidebar */
.sidebar-wrapper {
    background: linear-gradient(180deg, #1a252f 0%, #2c3e50 100%);
    border-right: none;
    font-weight: 500;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
}

.sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 100%);
    backdrop-filter: blur(10px);
}

.sidebar-menu {
    list-style: none;
    padding: 15px 0;
    margin: 0;
}
.sidebar-menu li {
    margin: 2px 10px;
}
.sidebar-menu li a {
    color: #f8f9fa;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}
.sidebar-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00bcd4, #26c6da);
    transition: width 0.3s ease;
    z-index: -1;
}
.sidebar-menu li a:hover::before {
    width: 4px;
}
.sidebar-menu li a:hover {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2) 0%, rgba(38, 198, 218, 0.15) 100%);
    color: #ffffff;
    transform: translateX(6px);
    box-shadow: 0 3px 10px rgba(0, 188, 212, 0.3);
    border-left: 3px solid #00bcd4;
}
.sidebar-menu li a i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.9;
    transition: all 0.3s ease;
    color: #00bcd4;
}
.sidebar-menu li a:hover i {
    opacity: 1;
    transform: scale(1.1);
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 188, 212, 0.6);
}

/* Menu titles */
.menu__title {
    color: #b0bec5;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 20px 16px 8px 16px;
    margin: 0;
    background: none;
    position: relative;
}
.menu__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #00bcd4 50%, transparent 100%);
    opacity: 0.5;
}

.border_menu {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 188, 212, 0.4) 20%, rgba(0, 188, 212, 0.8) 50%, rgba(0, 188, 212, 0.4) 80%, transparent 100%);
    margin: 15px 16px;
    position: relative;
}
.border_menu::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #00bcd4, #26c6da);
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 0 6px rgba(0, 188, 212, 0.5);
}

/* Submenu */
.sidebar-submenu {
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.2) 100%);
    border-radius: 8px;
    margin: 4px 8px;
    overflow: hidden;
    display: none;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 188, 212, 0.1);
}
.sidebar-dropdown.active .sidebar-submenu {
    display: block;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { 
        opacity: 0; 
        max-height: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1; 
        max-height: 200px;
        transform: translateY(0);
    }
}
.sidebar-submenu ul {
    margin: 0;
    padding: 8px 0;
    list-style: none;
}
.sidebar-submenu ul li a {
    padding: 8px 16px 8px 40px;
    font-size: 13px;
    color: #cfd8dc;
    border-radius: 4px;
    margin: 1px 8px;
    position: relative;
    font-weight: 400;
}
.sidebar-submenu ul li a::before {
    content: '▸';
    position: absolute;
    left: 24px;
    color: #00bcd4;
    font-size: 10px;
    transition: all 0.3s ease;
}
.sidebar-submenu ul li a:hover::before {
    transform: translateX(2px);
    color: #26c6da;
}
.sidebar-submenu ul li a:hover {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.25) 0%, rgba(38, 198, 218, 0.15) 100%);
    color: #ffffff;
    transform: translateX(4px);
    border-left: 2px solid #00bcd4;
}

/* Special buttons */
.sidebar-menu li a.admin-link {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(255, 152, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 600;
}
.sidebar-menu li a.admin-link:hover {
    background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
    transform: translateX(8px);
    box-shadow: 0 5px 16px rgba(255, 152, 0, 0.5);
}
.sidebar-menu li a.logout-link {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(244, 67, 54, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 600;
}
.sidebar-menu li a.logout-link:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    transform: translateX(8px);
    box-shadow: 0 5px 16px rgba(244, 67, 54, 0.5);
}
.sidebar-menu li a.login-link {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(33, 150, 243, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 600;
}
.sidebar-menu li a.login-link:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    transform: translateX(8px);
    box-shadow: 0 5px 16px rgba(33, 150, 243, 0.5);
}
.sidebar-menu li a.register-link {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 600;
}
.sidebar-menu li a.register-link:hover {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
    transform: translateX(8px);
    box-shadow: 0 5px 16px rgba(76, 175, 80, 0.5);
}

/* Dropdown arrow */
.sidebar-dropdown > a::after {
    content: '▼';
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}
.sidebar-dropdown.active > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* Header */
.header-bar {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Main content */
.page-content {
    background: #f8f9fa;
    min-height: calc(100vh - 70px);
}

/* Cards */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: none;
    transition: all 0.3s ease;
}
.card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* User info */
.user-greeting {
    color: #1565c0;
    font-weight: 600;
    font-size: 1rem;
}
.user-balance {
    color: #1565c0;
    font-weight: 700;
    margin-left: 12px;
    font-size: 1rem;
}

/* Navigation tabs */
.layout_nav_menu_proxy {
    border-bottom: 2px solid #e9ecef;
    justify-content: center;
}
.layout_nav_item_menu_proxy {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
    color: #495057;
    font-weight: 600;
    padding: 12px 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 4px;
}
.layout_nav_item_menu_proxy:hover {
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}
.layout_nav_item_menu_proxy.active {
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    color: white;
    border-color: #1976d2;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

/* Button styles */
.btn-primary {
    background-color: #4caf50;
    border-color: #4caf50;
    color: #fff;
}
.btn-primary:hover {
    background-color: #388e3c;
    border-color: #388e3c;
    color: #fff;
}
.btn-success {
    background-color: #1976d2;
    border-color: #1976d2;
    color: #fff;
}
.btn-success:hover {
    background-color: #115293;
    border-color: #115293;
    color: #fff;
}
.btn-danger {
    background-color: #d32f2f;
    border-color: #d32f2f;
    color: #fff;
}
.btn-danger:hover {
    background-color: #9a2424;
    border-color: #9a2424;
    color: #fff;
}

/* Page content */
.page-content {
    padding: 30px 40px;
    background-color: #f5f7fa;
    min-height: 100vh;
}
.layout-specing h5 {
    font-weight: 700;
    color: #333;
}
.breadcrumb {
    display: none;
}

/* Card override */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
    padding: 30px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}
.card:hover {
    box-shadow: 0 6px 20px rgb(0 0 0 / 0.1);
}
.card h5 {
    color: #212121;
}
.card p {
    color: #555;
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: #fff;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666;
    padding: 15px 40px;
    text-align: center;
}
footer a {
    color: #4caf50;
    font-weight: 600;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Service intro styles */
.service-intro-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.3rem;
}

.service-intro-text {
    margin: 0;
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 300;
}

.service-intro-icon {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar-wrapper {
        box-shadow: none;
    }
    .header-bar {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    .header-bar a.btn {
        margin-left: 0;
        margin-top: 10px;
    }
    .page-content {
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInScale {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes checkmarkBounce {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hide logo icon on mobile devices */
@media (max-width: 768px) {
    img[src*="logo-icon.png"] {
        display: none !important;
    }
}
