* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.hamburger-btn {
    position: sticky;   
    top: 20px !important;
    left: 20px !important;
    width: 50px;
    height: 50px;
    background-color: #000000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 1002;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.hamburger-btn:hover {
    background-color: #333333;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.hamburger-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Animation States */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Ensure hamburger button stays in place when sidebar is open */
.sidebar.open ~ .hamburger-btn,
.sidebar.open + .hamburger-btn,
.hamburger-btn {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    transform: none !important;
    z-index: 1002 !important;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: #000000;
    padding: 10px 0;
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    height: 100dvh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
}

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

.sidebar-header {
    padding: 80px 1.5rem 2rem 1.5rem;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    padding: 1rem 0;
    margin-top: 4rem;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
    position: relative;
}

.nav-link:hover {
    background-color: #222;
    border-left-color: #fff;
    color: white;
}

.nav-link.active {
    background-color: #333;
    border-left-color: #fff;
    color: white;
}

.nav-icon {
    margin-right: 0.75rem;
    font-size: 1.4rem;
    min-width: 20px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.nav-text {
    flex: 1;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.nav-arrow {
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: 0.8rem;
    opacity: 1;
}

.nav-item.open .nav-arrow {
    transform: rotate(180deg);
}

.sub-nav {
    list-style: none;
    background-color: #111;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
    z-index: 1001;
}

.nav-item.open .sub-nav {
    max-height: 800px;
}

.sub-nav li {
    border-top: 1px solid #333;
    display: block;
}

.sub-nav a {
    display: block;
    padding: 0.75rem 3rem;
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background-color: #111;
}

.sub-nav a:hover {
    background-color: #222;
    color: #fff;
    padding-left: 3.5rem;
}

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

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

.main-content {
    flex: 1;
    margin-left: 0;
    padding: 80px 2rem 2rem 2rem;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.section-header {
    margin-top: 1.5rem;
    padding-top: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #000;
}

.section-header h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
}

.section-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.content-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #000;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.content-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25) !important;
}

.content-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.content-card h4 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.content-card ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.content-card li {
    margin-bottom: 0.3rem;
}

.content-card p {
    margin-bottom: 1rem;
}

.content-card a {
    color: #2c3e50;
    text-decoration: none;
}

.content-card a:hover {
    text-decoration: underline;
}

.machine-image {
    margin-bottom: 1rem;
    text-align: left;
    float: left;
    margin-right: 1rem;
    margin-left: 10%;
}

.machine-image img {
    width: 100%;
    height: auto;
    max-width: 150px;
    border-radius: 8px;
}

.machine-detail {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.machine-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.machine-info ul {
    list-style: none;
    padding: 0;
}

.machine-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
    font-size: 1rem;
}

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

.pricing-image {
    margin-bottom: 1rem;
    text-align: center;
}

.pricing-detail {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pricing-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.pricing-info h4 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.pricing-info ul {
    list-style: none;
    padding: 0;
}

.pricing-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
    font-size: 1rem;
}

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

.pricing-info p {
    margin-top: 1rem;
    font-style: italic;
    color: #7f8c8d;
}

.price {
    text-align: center;
    margin: 1rem 0;
}

.price-amount {
    font-size: 2rem;
    color: #000;
}

.price-period {
    color: #7f8c8d;
    font-size: 1rem;
}

.contact-hours {
    margin-top: 1.5rem;
}

.contact-hours h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-hours ul {
    list-style: none;
    padding: 0;
}

.contact-hours li {
    padding: 0.25rem 0;
    color: #7f8c8d;
}

.social-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    display: inline-block;
    text-align: center;
    margin-top: 1rem;
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.whatsapp {
    background: #25d366;
}

.social-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
}

.social-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: left;
}

.social-item h4 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
    text-align: left;
}

.social-item ul {
    text-align: left;
    margin-left: 1.5rem;
}

.social-item li {
    margin-bottom: 0.3rem;
    text-align: left;
}

/* Phone Number Styling */
.phone-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    margin: 1rem 0;
    text-align: left;
}

.phone-number a {
    color: inherit;
    text-decoration: none;
}

.phone-number a:hover {
    text-decoration: underline;
}   

.service-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 3px solid #000;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card:last-child {
    margin-bottom: 0;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    margin-bottom: 0;
    color: #555;
    line-height: 1.6;
}

.service-card a {
    color: #000;
    text-decoration: none;
}

.service-card a:hover {
    text-decoration: underline;
}

/* Mobile devices (320px and up) */
@media screen and (max-width: 767px) {
    .hamburger-btn {
        top: 10px !important;
        left: 10px !important;
        width: 45px;
        height: 45px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .main-content {
        padding: 70px 1rem 1rem 1rem;
    }
    
    .section-header {
        margin-top: 1rem;
        padding-top: 0.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .content-card {
        padding: 1.5rem;
        margin-bottom: 0;
    }
    
    .machine-detail,
    .pricing-detail {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .machine-detail .machine-image img,
    .pricing-detail .machine-image img {
        max-width: 100%;
        height: auto;
        width: 100%;
    }
    
    .sidebar {
        width: 100%;
        max-width: 300px;
    }
    
    .nav-link {
        padding: 1rem;
        font-size: 1.1rem;
    }
}

/* Tablets (768px and up) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .main-content {
        padding: 70px 1.5rem 1.5rem 1.5rem;
    }
    
    .machine-detail,
    .pricing-detail {
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

/* Accessories Section Styles */
.accessories-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.accessory-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accessory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.accessory-image {
    text-align: center;
    margin-bottom: 1rem;
}

.accessory-image img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.accessory-image img:hover {
    transform: scale(1.05);
}

.accessory-info h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.accessory-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.accessory-specs h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.accessory-specs ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.accessory-specs li {
    padding: 0.25rem 0;
    color: #555;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.accessory-specs li:last-child {
    border-bottom: none;
}

.accessory-pricing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.accessory-pricing .price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
}

.accessory-pricing .price-period {
    color: #666;
    font-size: 0.9rem;
}

.accessory-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* Contenteditable styles */
[contenteditable="true"]:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-radius: 4px;
    padding: 2px;
}

[contenteditable="true"]:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 2px;
}

.add-accessory-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    border: 2px dashed #ccc;
    border-radius: 12px;
    background: #f8f9fa;
}

.add-accessory-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.add-accessory-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #004085);
}

.add-accessory-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.btn-text {
    font-size: 1rem;
}

/* Responsive Design for Accessories */
@media screen and (max-width: 767px) {
    .accessories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .accessory-card {
        padding: 1rem;
    }

    .accessory-info h3 {
        font-size: 1.2rem;
    }

    .add-accessory-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .accessories-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

/* Back Button Styling */
.back-button {
    border-bottom: 1px solid #333;
    margin-bottom: 1rem;
}

.back-button .nav-link {
    background-color: #333 !important;
    border-left-color: #fff !important;
    color: white !important;
    font-weight: 600;
}

.back-button .nav-link:hover {
    background-color: #444 !important;
    transform: translateX(-5px);
}

.back-button .nav-icon {
    color: #fff !important;
}

.back-button .nav-text {
    color: #fff !important;
}

/* Accessories Preview Styling */
.accessories-preview {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.accessory-preview-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.accessory-preview-card:hover {
    transform: scale(1.05);
}

.accessory-preview-card img {
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}