/*
Server Information Menu Styles
Custom styles for the server menu sidebar component
*/

.server-menu-elegant {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.server-title {
    color: var(--heading-color) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: center;
    margin-bottom: 20px !important;
    padding: 15px 0 10px 0;
    border-bottom: 2px solid var(--main-theme-color);
    position: relative;
}

.server-title i {
    margin-right: 8px;
    color: var(--main-theme-color);
    font-size: 16px;
}

.server-title::after {
    display: none !important;
}

.category-header {
    color: var(--heading-color) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 12px 8px 35px;
    border-left: 3px solid var(--main-theme-color);
    background: rgba(236, 1, 1, 0.05);
    border-radius: 4px;
    margin-bottom: 15px;
}

.category-header i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--main-theme-color);
    font-size: 12px;
}

.menu-items {
    list-style: none !important;
    padding: 0 !important;
    margin: 0;
}

.menu-items li {
    margin-bottom: 6px !important;
}

.menu-link {
    color: var(--paragraph-color) !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    background: transparent;
    border: 1px solid transparent;
    position: relative;
    font-weight: 400;
    font-size: 14px;
}

.menu-link:hover {
    background: rgba(236, 1, 1, 0.05) !important;
    color: var(--heading-color) !important;
    border-color: rgba(236, 1, 1, 0.2) !important;
    transform: translateX(2px);
}

.menu-link.active {
    background: var(--main-theme-color) !important;
    color: #ffffff !important;
    border-color: var(--main-theme-color) !important;
    box-shadow: 0 2px 6px rgba(236, 1, 1, 0.2);
    font-weight: 500;
}

.menu-link.active::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--heading-color);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--glow-color);
}

.link-icon {
    margin-right: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.menu-category {
    margin-bottom: 20px !important;
}

.menu-category:last-child {
    margin-bottom: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .server-menu-elegant {
        margin: 15px 0;
        border-radius: 6px;
        order: -1; /* Menu appears first on mobile */
    }

    .menu-link:hover {
        transform: translateX(1px);
    }

    .menu-link.active {
        transform: none;
    }
}

/* Right sidebar specific adjustments */
@media (min-width: 992px) {
    .service_details_sidebar .server-menu-elegant {
        margin-left: 15px;
    }
}

/* Server Image Styles */
.server-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    padding: 20px 0;
}

.server-image img {
    max-width: 100%;
    max-height: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    object-fit: cover;
}

.server-image img:hover {
    transform: scale(1.02);
}

/* Row alignment for better harmony - Solo para la introducción */
.service_details_para .row {
    align-items: center;
}

.service_details_para .server-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 20px 0;
}

/* Menu Lateral - Mantener posición fija */
.sidebar_service_wrappers.server-menu-elegant {
    position: sticky;
    top: 20px;
    margin-bottom: 0 !important;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for menu */
@media (max-width: 991px) {
    .sidebar_service_wrappers.server-menu-elegant {
        position: static;
        margin-bottom: 30px !important;
        order: -1; /* Menu appears first on mobile */
    }
}

@media (max-width: 768px) {
    .sidebar_service_wrappers.server-menu-elegant {
        margin-bottom: 20px !important;
    }
}

/* Server Specifications Table Styles */
.server-specs-table {
    margin: 20px 0;
}

.server-specs-table h4 {
    color: var(--heading-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.specs-table-simple {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.specs-table-simple td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--paragraph-color);
}

.specs-table-simple td:last-child {
    border-right: none;
}

.specs-table-simple tr:last-child td {
    border-bottom: none;
}

.specs-table-simple .spec-name {
    font-weight: 500;
    color: var(--heading-color);
    background: var(--bg-secondary);
    width: 25%;
    border-right: 2px solid var(--main-theme-color);
}

.specs-table-simple .spec-value {
    font-weight: 600;
    color: var(--secondary-color);
    background: var(--bg-card);
    width: 25%;
    text-align: center;
    text-shadow: 0 0 4px var(--glow-secondary);
}

/* Server Description Styles */
.server-description {
    margin-bottom: 25px;
}

.server-description p {
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--paragraph-color);
}

.server-description strong {
    color: var(--heading-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .specs-table-simple {
        font-size: 14px;
    }

    .specs-table-simple td {
        padding: 8px 10px;
    }

    .server-image {
        margin-top: 15px;
    }

    .server-image img {
        border-radius: 6px;
    }
}

@media (max-width: 576px) {
    .specs-table-simple .spec-name,
    .specs-table-simple .spec-value {
        width: 50%;
        display: block;
        text-align: left;
    }

    .specs-table-simple td {
        display: block;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .specs-table-simple tr {
        display: block;
        margin-bottom: 8px;
    }

    .server-image {
        margin-top: 10px;
    }
}