 :root {
     --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
     --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
     --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
     --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
     --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2rem);

     --space-1: 0.25rem;
     --space-2: 0.5rem;
     --space-3: 0.75rem;
     --space-4: 1rem;
     --space-5: 1.25rem;
     --space-6: 1.5rem;
     --space-8: 2rem;
     --space-10: 2.5rem;

     --radius-sm: 0.5rem;
     --radius-md: 0.875rem;
     --radius-lg: 1.25rem;
     --radius-full: 9999px;

     --color-bg: #f5f6f8;
     --color-surface: #ffffff;
     --color-surface-2: #eef1f5;
     --color-border: rgba(25, 32, 45, 0.12);
     --color-divider: rgba(25, 32, 45, 0.08);
     --color-text: #1f2937;
     --color-text-muted: #667085;
     --color-primary: #0f766e;
     --color-primary-hover: #115e59;
     --color-primary-soft: #d7f0ed;
     --color-customer: #ffffff;
     --color-support: #dff4f1;
     --color-input: #f8fafc;
     --shadow-md: 0 14px 40px rgba(15, 23, 42, 0.08);
     --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
     --font-body: 'Arial', sans-serif;
 }
 
 /* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}
/* Restore spacing and left-align non-navigation lists */
ul:not(nav ul), ol {
    margin: 1em 0; /* Vertical spacing */
    padding-left: 2rem; /* Indentation for bullets/numbers */
    text-align: left; /* Left-align list items like book text */
}

ul:not(nav ul) li, ol li {
    margin-bottom: 0.5rem; /* Space between list items */
}

/* Ensure lists in specific sections are consistent and left-aligned */
.services ul, .services ol, .pagebody ul, .pagebody ol {
    margin: 1em 0;
    padding-left: 2rem;
    text-align: left; /* Override parent text-align: center */
}
/* Body */
body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f1e9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: #3c2f2f;
    color: #fff;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
/* Manual_subheader */    
}
.user_manual_sub_header {
    background-color: #3c2f2f; /* Example background color */
    padding: 1rem 2rem;
    position: static;
    top: 80px; /* Equal to the main header's height */
    z-index: 90; /* Lower than main header to ensure it stays below */
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}
.user_manual_body {
    max-width: 1280px;
    text-align: justify;
    padding: 2rem;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
}
.user_manual_body img {
    max-width: 1024px;
    max-height: 512px;
    margin: 16px;
}
.user_manual_body video {
    max-width: 1024px;
    max-height: 512px;
    margin: 16px;
}
.logo img {
    width: 150px; /* Fixed width for consistency */
    height: auto;
}
/* scailing for pictures on multiple devices */
.responsive-image {
    width: 100%; /* Full width of the parent container */
    max-width: 1200px; /* Cap maximum width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove inline spacing */
    margin: 0 auto; /* Center the image */
}
.responsive50-image {
    width: 50%; /* Full width of the parent container */
    max-width: 600px; /* Cap maximum width */
    height: auto; /* Maintain aspect ratio */
    /*display: block; Remove inline spacing */
    margin: 0; /* left align the image */
}
.responsive25-image {
    width: 25%; /* Full width of the parent container */
    max-width: 300px; /* Cap maximum width */
    height: auto; /* Maintain aspect ratio */
    /*display: block; Remove inline spacing */
    margin: 0; /* left align the image */
}
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #e6b800;
}
/*table borders */
table,tr,td {
border: solid 1px #000;
}
/* Centered Table */
.centered-table {
    width: 100%; /* Full width of parent container */
    max-width: 800px; /* Cap table width for readability */
    margin: 0 auto; /* Center horizontally */
    border-collapse: collapse; /* Clean cell borders */
    background-color: #fff; /* White background for contrast */
    text-align: left; /* Align text within cells */
}

/* Style table headers and cells */
.centered-table th, .centered-table td {
    padding: 0.75rem;
    border: 1px solid #ccc; /* Subtle borders */
    font-size: 1rem;
    color: #3c2f2f; /* Match your color scheme */
}

/* Style the main header (2.1 PARAMETERS BHT) */
.centered-table th {
    background-color: #3c2f2f; /* Match main-header */
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
}

/* Style subheaders (ELECTRICAL SUPPLY, etc.) */
.centered-table td[colspan="2"] {
    background-color: #f4f4f4; /* Match user_manual_sub_header */
    font-weight: bold;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .centered-table {
        max-width: 100%; /* Full width on smaller screens */
        margin: 0 0.5rem; /* Smaller side margins */
    }

    .centered-table th, .centered-table td {
        padding: 0.5rem; /* Reduce padding */
        font-size: 0.9rem; /* Smaller text */
    }
}

@media (max-width: 480px) {
    .centered-table th, .centered-table td {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}
/* Hero Section */
.hero {
    background: linear-gradient(rgba(60, 47, 47, 0.8), rgba(60, 47, 47, 0.8)), url('coffee-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 4rem 1rem;
    flex: 1;
}

.hero h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #e6b800;
    color: #3c2f2f;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #cc9e00;
}

/* Services Section */
.services {
    padding: 3rem 1rem;
    text-align: center;
    background-color: #fff;
}

.services h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 2rem;
    color: #3c2f2f;
}

.service-item h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
    color: #3c2f2f;
}

.service-item h4 {
    font-size: clamp(1rem, 2vw, 1rem);
    margin-bottom: 0.5rem;
    color: #3c2f2f;
}

.service-item {
    position: relative;
}

.service-item-new {
    color: #f00;
    font-weight: bold;
    transform: rotate(45deg);
    position: absolute;
    right: 0.5em;
    top: 1em;
    font-size: 150%;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-item {
    background-color: #f8f1e9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item p {
    font-size: 1rem;
    color: #555;
}
/*underlaning butonning notanymoreunderling */
.service-item a:active,
.service-item a:visited,
.service-item a:hover,
.service-item a:link,
.service-grid a:active,
.service-grid a:visited,
.service-grid a:hover,
.service-grid a:link {
    text-decoration: none;
     background-color: inherit;
}

/*underlaning butonning notanymoreunderling */
h3 a:active,
h3 a:visited,
h3 a:hover,
h3 a:link {
    text-decoration: none;
     background-color: inherit;
}
/* underlaning butonning notanymoreunderling */
p a:active,
p a:visited,
p a:hover,
p a:link {
    text-decoration: none;
     background-color: inherit;
}
/* Contact Section */
.pagebody {
    padding: 3rem 1rem;
    background-color: #f8f1e9;
    text-align: center;
    flex: 1;
}

.pagebody h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 2rem;
    color: #3c2f2f;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

label {
    font-size: 1rem;
    color: #3c2f2f;
    text-align: left;
}

input, textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    background-color: #e6b800;
    color: #3c2f2f;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #cc9e00;
}

/* Footer */
footer {
    background-color: #3c2f2f;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

footer p {
    font-size: 0.9rem;
}

.responsive-container {
    display: flex;
    width: 100%;
    padding: 3em 0 3em 0;
}
.responsive-left {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.responsive-left img {
    max-width: 100%;
    max-height: 100%;
}
.responsive-right {
    width: 60%;
    display: flex;
    flex-direction: column;
    padding-left: 5em;
}
.responsive-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: left;
}



/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .logo img {
        width: 120px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }

    .pagebody {
        padding: 2rem 0.5rem;
    }

    form {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .services h2, .contact h2 {
        font-size: 1.5rem;
    }

    button {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* Great Scott! We will need more CSS for Documentation soon! */
.doc_page {
    max-width: 100%;
    margin: 0 auto;
}
.doc_page * {
    all: revert;
}
.doc_page > div {
  padding: 1em;
}
.doc_page {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(100px, auto);
}
.doc_page_left {
    background: #000;
    color: #fff;
    grid-column: 1 / 2;
    grid-row: 1;
    text-align: left;
    border-radius: 0 4em 4em 0;
}
.doc_page_left > h1,
.doc_page_left > h2,
.doc_page_left > h3,
.doc_page_left > h4 {
    color: #fff;
}
.doc_page_right {
    background: #fff;
    color: #000;
    grid-column: 2 / 2;
    grid-row: 1;
    text-align: center;
}

.doc_page_left2 {
    background: #fff;
    color: #000;
    grid-column: 1 / 2;
    grid-row: 1;
    text-align: left;
    border-radius: 0 4em 4em 0;
}
.doc_page_left2 > h1,
.doc_page_left2 > h2,
.doc_page_left2 > h3,
.doc_page_left2 > h4 {
    color: #f000;
}
.doc_page_right2 {
    background: #000;
    color: #fff;
    grid-column: 2 / 2;
    grid-row: 1;
    text-align: center;
}

.doc_shadow img {
    box-shadow: 0 0 0.5em #000;
}

.icon {
    font-size: 5em;
    margin: 0;
    padding: 0;
    color: #000;
}

.ticket_comment_client {
    border: solid 1px #000;
    width: 80%;
    margin-right: 20%;
    background: #88f;
}
.ticket_comment_support {
    border: solid 1px #000;
    width: 80%;
    margin-left: 20%;
    background: #888;
}

.ticket-chat {
     width: min(100%, 960px);
     min-height: 78vh;
     background: var(--color-surface);
     border: 1px solid var(--color-border);
     border-radius: var(--radius-lg);
     box-shadow: var(--shadow-md);
     display: grid;
     grid-template-rows: auto 1fr auto;
     overflow: hidden;
 }

 .ticket-main {
    display: flex;
    justify-content: center;
    align-items: center;
 }

 .ticket-header {
     padding: var(--space-6);
     border-bottom: 1px solid var(--color-divider);
     background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
     display: flex;
     justify-content: space-between;
     gap: var(--space-6);
     flex-wrap: wrap;
 }

.ticket-title h1 {
     margin: 0 0 var(--space-2);
     font-size: var(--text-xl);
     line-height: 1.1;
 }

.ticket-title p,
.ticket-meta span,
.message-meta,
.composer textarea::placeholder {
    color: var(--color-text-muted);
}

.ticket-title p,
.ticket-meta span,
.composer textarea,
.send-button {
    font-size: var(--text-sm);
}

.ticket-meta {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
    align-items: center;
}

.meta-block {
    display: grid;
    gap: var(--space-1);
}

.meta-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    font-weight: 700;
}

.meta-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-full);
    background: #fff4df;
    color: #9a6700;
    font-weight: 700;
    border: 1px solid rgba(154, 103, 0, 0.18);
}

.status-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: currentColor;
}

.chat-body {
    padding: var(--space-6);
    background: var(--color-surface-2);
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-height: 500px;
    overflow-x: scroll;
}

.message-row {
    display: flex;
    width: 100%;
}

.message-row.customer {
    justify-content: flex-start;
}

.message-row.support {
    justify-content: flex-end;
}

.message {
    max-width: min(72%, 32rem);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.message.customer {
    background: var(--color-customer);
    border-top-left-radius: 0.35rem;
}

.message.support {
    background: var(--color-support);
    border-top-right-radius: 0.35rem;
}

.message-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-4);
    margin-bottom: var(--space-2);
}

.message-author {
    font-size: var(--text-sm);
    font-weight: 700;
}

.message-meta {
    font-size: var(--text-xs);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.message p {
    margin: 0;
    font-size: var(--text-base);
    line-height: 1.55;
    text-align: left;
}

.composer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid var(--color-divider);
    background: var(--color-surface);
    width: 100%;
    max-width: unset;
}

.composer textarea {
    width: 100%;
    min-height: 3.75rem;
    resize: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-input);
    padding: 0.95rem 1rem;
    outline: none;
    color: var(--color-text);
}

.composer textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.composer form {
    max-width: unset;
}

.send-button {
    align-self: end;
    min-width: 7rem;
    min-height: 3.75rem;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    padding: 0 1.2rem;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.send-button:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 700px) {

    .ticket-chat {
        min-height: 88vh;
    }

    .ticket-header,
    .chat-body,
    .composer {
        padding-inline: var(--space-4);
    }

    .message {
        max-width: 88%;
    }

    .composer {
        grid-template-columns: 1fr;
    }

    .send-button {
        width: 100%;
    }
}
