:root {
        --primary: #004e92;
        --primary-dark: #002664;
        --accent: #176fc5;
        --light: #ffffff;
        --grey-bg: #f6f6f6;
        --text: #002664;
        --hover-bg: #004e92;
        --hover-text: #d2ddfa;
      }
      [data-theme="dark"] {
        --primary: rgb(11, 35, 61);
        --primary-dark: #021226;
        --accent: #176fc5;
        --light: #1a2538;
        --grey-bg: #0e1726;
        --text: #d2ddfa;
        --hover-bg:  #d2ddfa;
        --hover-text: #002664;
      }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', 'Arial', sans-serif;
    background: var(--light);
    min-height: 100vh;
    padding: 0;
    color: var(--text);
    line-height: 1.6;
}
   /* Navbar */
      .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--primary);
        color: #fff;
        padding: 0 40px;
        height: 62px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      }
      .navbar-brand {
        font-size: 1.4em;
        font-weight: 600;
      }
      .navbar-actions {
        display: flex;
        gap: 15px;
      }
      .navbar-btn {
        background: none;
        border: 0;
        color: #fff;
        font-size: 1em;
        cursor: pointer;
        padding: 8px 16px;
        border-radius: 3px;
        font-weight: 600;
        transition: background 0.2s;
      }
      .navbar-btn:hover {
        /* background: rgba(255, 255, 255, 0.1); */
        color: var(--hover-text);
      }

/* .container {
    max-width: auto;
    margin: 0 auto;
    height: auto;
    background: #ff0000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
} */

/* Header */
h1 {
    background: var(--primary);
    color: var(--text);
    text-align: left;
    margin: 0;
    padding: 30px 40px;
    font-size: 2em;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 4px solid #002664;
}

h2 {
    color: var(--text);
    margin: 0 0 20px 0;
    padding: 15px 0 10px 0;
    font-size: 1.5em;
    font-weight: 600;
    border-bottom: 2px solid #D1E2F3;
}

h3 {
    color: var(--text);
    margin: 15px 0 10px 0;
    font-size: 1.2em;
    font-weight: 600;
}

/* Sections */
.section {
    margin-bottom: 0;
    padding: 30px 40px;
    background: var(--light);
    border-bottom: 1px solid #E2E2E2;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95em;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #C5C5C5;
    border-radius: 2px;
    font-size: 15px;
    font-family: 'Source Sans Pro', 'Arial', sans-serif;
    color: var(--text);
    background: var(--light);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px #E8F1FA;
}

/* Ingredient Rows */
.ingredient-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 12px;
    align-items: end;
}

/* Buttons */
button {
    background: var(--accent);
    color: var(--light);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Source Sans Pro', 'Arial', sans-serif;
    transition: background-color 0.2s;
    
}

button:hover {
    background: var(--hover-bg);
    color: var(--hover-text);
}

button:active {
    background: var(--primary-dark);
}

button.delete {
   /* background: #CC3600;*/
    padding: 12px 16px;
}

button.delete:hover {
    background: #B0001F;
}

button.save:hover, button.calculate:hover {
    background: #28a745;
}

/* Drink Cards */
.drink-card {
    background: var(--light);
    padding: 20px;
    border: 1px solid #E2E2E2;
    border-left: 4px solid var(--accent);
    margin-bottom: 15px;
}

.drink-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #D1E2F3;
}

.drink-name {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text);
}

.ingredient-list {
    margin: 12px 0;
    padding-left: 25px;
    color: var(--text);
}

.ingredient-list li {
    margin-bottom: 6px;
}

/* Stock Items */
.stock-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
    margin-bottom: 12px;
    align-items: center;
    padding: 15px 20px;
    background: var(--light);
    border: 1px solid #E2E2E2;
    border-radius: 2px;
}

.stock-item:hover {
    background: var(--light-hover);
}

/* Results */
.results {
    background: var(--light-hover)  ;
    padding: 30px 40px;
    margin-top: 0;
}

.result-item {
    padding: 20px;
    margin-bottom: 15px;
    background: var(--light);
    border-left: 4px solid var(--accent);
    border-radius: 2px;
}

.result-item h3 {
    color: var(--text);
    margin-top: 0;
}

.success {
    border-left-color: var(--accent);
}

.warning {
    border-left-color: var(--warning);
}

.error {
    border-left-color: var(--error);
}

.shopping-list {
    background: var(--light);
    padding: 18px;
    border-radius: 2px;
    margin-top: 15px;
    border-left: 3px solid var(--warning);
}

.shopping-list strong {
    color: var(--warning);
}

.shopping-list ul {
    margin-top: 10px;
    padding-left: 25px;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 0;
    margin-bottom: 0;
  /*  background: #f6f6f6; */
    padding: 0 40px;
    border-bottom: 3px solid #004E92;
}

.tab {
    flex: 1;
    margin: 10px 0 0 0;
    padding: 18px 20px;
    background: var(--light);
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    color: var(--text);
    border-right: 1px solid #C5C5C5;
}

.tab:last-child {
    border-right: none;
}

.tab:hover {
    background: var(--light-hover);
    color: var(--accent);
}

.tab.active {
    background: #004E92;
    color: #ffffff;
    border-bottom: 3px solid #002664;
    margin-bottom: -3px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Typography */
p {
    margin-bottom: 12px;
    line-height: 1.6;
}

strong {
    font-weight: 600;
    color: var(--text);
}

/* Special Text Colors */
.success-text {
    color: #176FC5;
    font-weight: 600;
}

.warning-text {
    color: #9D6100;
    font-weight: 600;
}

.error-text {
    color: #CC3600;
    font-weight: 600;
}

/* Empty States */
.section p[style*="text-align:center"] {
    color: #6E6E6E;
    font-style: italic;
    padding: 40px 20px;
}

/* Utility */
ul {
    list-style-type: disc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0;
    }

    h1 {
        padding: 20px;
        font-size: 1.5em;
    }

    .section {
        padding: 20px;
    }

    .tabs {
        padding: 0;
        flex-direction: column;
    }

    .tab {
        border-right: none;
        border-bottom: 1px solid #C5C5C5;
    }

    .ingredient-row,
    .stock-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .results {
        padding: 20px;
    }
}
