* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
}

body {
    background-color: #050505;
    color: #bcbcbc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    line-height: 1.4;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    color: #666666;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: #101010;
    border: 1px solid #222222;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
}

.input-group input:focus {
    outline: none;
    border-color: #555555;
    background: #141414;
}

input[type="file"] {
    color: #666666;
    font-size: 0.8rem;
}

input[type="file"]::-webkit-file-upload-button {
    background: #101010;
    border: 1px solid #222222;
    color: #ffffff;
    padding: 8px 12px;
    font-family: inherit;
    cursor: pointer;
    margin-right: 10px;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: #202020;
    border-color: #444444;
}

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-family: inherit;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn:hover {
    background: #ffffff;
    color: #050505;
}

.action-link-btn {
    background: none;
    border: none;
    color: #888888;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.8rem;
}

.action-link-btn:hover {
    color: #ffffff;
}

.error-msg {
    color: #ff3333;
    font-size: 0.8rem;
    margin-top: 10px;
    min-height: 1.2em;
}

.hub-header {
    text-align: center;
    margin: 60px auto 40px auto;
}

.hub-header h1 {
    color: #ffffff;
    font-size: 1.6rem;
    letter-spacing: 5px;
}

.hub-container {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.auth-card {
    flex: 1;
    background: #0c0c0c;
    border: 1px solid #1a1a1a;
    padding: 40px;
}

.auth-card h2 {
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.auth-card p {
    font-size: 0.8rem;
    color: #555555;
    margin-bottom: 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 20px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.nav-brand h1 {
    font-size: 1.2rem;
    color: #ffffff;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 25px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    flex-wrap: wrap;
}

.nav-links a.active {
    border-bottom: 1px solid #ffffff;
    padding-bottom: 2px;
}

.dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-view {
    display: none;
}

.dashboard-view.active {
    display: block;
}

.dashboard-view h2 {
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: #0c0c0c;
    border: 1px solid #1a1a1a;
    padding: 20px;
}

.metric-card h3 {
    font-size: 0.75rem;
    color: #666666;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: lighter;
}

.workspace-card {
    background: #0c0c0c;
    border: 1px solid #1a1a1a;
    padding: 30px;
}

.workspace-card h3 {
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.table-wrapper {
    overflow-x: auto;
    background: #0c0c0c;
    border: 1px solid #1a1a1a;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

th {
    color: #666666;
    font-weight: normal;
    border-bottom: 1px solid #222222;
    padding-bottom: 12px;
    letter-spacing: 1px;
}

td {
    padding: 14px 0;
    border-bottom: 1px solid #111111;
    color: #ffffff;
    vertical-align: middle;
}

.empty-row td {
    text-align: center;
    color: #444444;
    padding: 40px 0;
    letter-spacing: 1px;
}

.table-thumbnail {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border: 1px solid #222222;
    display: block;
    filter: grayscale(100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-item-card {
    background: #0c0c0c;
    border: 1px solid #1a1a1a;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.prod-img-box {
    width: 100%;
    height: 180px;
    background: #101010;
    border: 1px solid #1a1a1a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.product-item-card:hover .prod-img-box img {
    filter: grayscale(0%);
}

.prod-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #555555;
    margin-bottom: 15px;
}

.prod-title {
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    min-height: 2.6em;
}

.prod-price {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.search-bar-container {
    display: flex;
    gap: 10px;
    max-width: 600px;
}

.search-bar-container input {
    flex: 1;
    padding: 12px;
    background: #101010;
    border: 1px solid #222222;
    color: #ffffff;
    font-family: inherit;
}

.search-bar-container input:focus {
    outline: none;
    border-color: #555555;
}

.categories-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
}

.category-block {
    background: #0c0c0c;
    border: 1px solid #1a1a1a;
    padding: 30px;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.2s ease;
}

.category-block:hover {
    background: #ffffff;
    color: #050505;
}

.cart-split-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-items-list {
    background: #0c0c0c;
    border: 1px solid #1a1a1a;
    padding: 30px;
    min-height: 200px;
}

.empty-cart-text {
    font-size: 0.8rem;
    color: #444444;
    text-align: center;
    margin-top: 80px;
    letter-spacing: 1px;
}

.cart-checkout-summary {
    background: #0c0c0c;
    border: 1px solid #1a1a1a;
    padding: 30px;
    align-self: start;
}

.cart-checkout-summary h3 {
    color: #ffffff;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 1px solid #222222;
    padding-bottom: 10px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.tracking-output-display {
    background: #0c0c0c;
    border: 1px solid #1a1a1a;
    padding: 30px;
    max-width: 500px;
    min-height: 100px;
}

.messages-split-panel {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border: 1px solid #1a1a1a;
    background: #0c0c0c;
    height: 450px;
}

.messages-sidebar-list {
    border-right: 1px solid #1a1a1a;
    overflow-y: auto;
}

.msg-thread-item {
    padding: 20px;
    border-bottom: 1px solid #111111;
    cursor: pointer;
}

.msg-thread-item.active {
    background: #141414;
}

.msg-thread-item h4 {
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.msg-thread-item p {
    font-size: 0.75rem;
    color: #555555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-chat-window {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #080808;
}

.chat-logs-stream {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.chat-bubble.incoming {
    background: #0c0c0c;
    border: 1px solid #222222;
    color: #bcbcbc;
    align-self: flex-start;
}

.chat-input-row {
    display: flex;
    border-top: 1px solid #1a1a1a;
    background: #0c0c0c;
}

.chat-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
}

.chat-input-row input:focus {
    outline: none;
}

@media (max-width: 900px) {
    .hub-container,
    .cart-split-layout,
    .messages-split-panel {
        grid-template-columns: 1fr;
        flex-direction: column;
        height: auto;
    }

    .metrics-grid,
    .categories-list-grid {
        grid-template-columns: 1fr;
    }
    
    .messages-sidebar-list {
        border-right: none;
        border-bottom: 1px solid #1a1a1a;
    }
}
