/* Services View Styles */
.services-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: var(--bg-primary, #1e1e2f);
    color: var(--text-primary, #ffffff);
    overflow: hidden;
}

.services-header {
    padding: 24px 40px;
    background: rgba(30, 30, 47, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary, #3a3a5c);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.services-title-area h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #fff 0%, #b9bbbe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-title-area p {
    color: var(--text-secondary, #b9bbbe);
    font-size: 14px;
}

.services-filters {
    padding: 16px 40px;
    background: rgba(24, 24, 37, 0.5);
    border-bottom: 1px solid var(--border-primary, #3a3a5c);
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #b9bbbe);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.services-select, .services-input {
    background: #2b2d31;
    border: 1px solid var(--border-primary, #3a3a5c);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.services-select:focus, .services-input:focus {
    border-color: var(--accent-primary, #5865f2);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.services-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 40px 40px;
}

/* Custom Scrollbar */
.services-content::-webkit-scrollbar {
    width: 8px;
}

.services-content::-webkit-scrollbar-track {
    background: transparent;
}

.services-content::-webkit-scrollbar-thumb {
    background: var(--border-primary, #3a3a5c);
    border-radius: 4px;
}

.services-content::-webkit-scrollbar-thumb:hover {
    background: #4a4a6e;
}

.services-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 16px;
}

.services-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-secondary, #b9bbbe);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-row {
    background: #2b2d31;
    transition: transform 0.2s, background 0.2s;
}

.service-row:hover {
    background: #35373c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-row td {
    padding: 16px;
    font-size: 14px;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

.service-row td:first-child {
    border-left: 1px solid transparent;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    color: var(--text-secondary, #b9bbbe);
    font-family: monospace;
}

.service-row td:last-child {
    border-right: 1px solid transparent;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.service-name-cell {
    font-weight: 600;
    color: #ffffff;
}

.service-desc-trigger {
    display: block;
    font-size: 12px;
    color: var(--accent-primary, #5865f2);
    cursor: pointer;
    margin-top: 4px;
    text-decoration: none;
}

.service-desc-trigger:hover {
    text-decoration: underline;
}

.rate-cell {
    color: #57f287;
    font-weight: 700;
}

.quantity-cell {
    color: #fee75c;
}

.buy-btn {
    background: var(--accent-primary, #5865f2);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.buy-btn:hover {
    background: #4752c4;
}

/* Category Headers */
.category-header-row {
    background: transparent !important;
}

.category-header-row td {
    padding: 24px 16px 8px !important;
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary, #5865f2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-primary, #3a3a5c);
}

/* Modal for Description */
.service-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.service-modal {
    background: #2b2d31;
    width: 600px;
    max-width: 90vw;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: all 0.3s;
}

.service-modal-overlay.active .service-modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    background: var(--accent-primary, #5865f2);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 24px;
    color: #dcddde;
    line-height: 1.6;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
}

.modal-close:hover {
    opacity: 1;
}
