/* Dulux Protective Coatings Branding */
:root {
    --dulux-primary: #00529B;
    /* Dulux blue */
    --dulux-secondary: #EF3340;
    /* Dulux red */
    --dulux-accent: #FFD100;
    /* Dulux yellow */
    --dulux-dark: #2C3E50;
    /* Dark blue/navy */
    --dulux-light: #F5F7FA;
    /* Light background */
    --dulux-text: #333333;
    /* Text color */
    --dulux-light-text: #7F8C8D;
    /* Light text color */
    --dulux-success: #27AE60;
    /* Success green */

    /* Semantic tokens */
    --color-cta: #e2001a;
    --color-cta-hover: #c40016;
    --color-danger: #ef3340;
    --color-danger-hover: #d42d3d;
    --color-border: #ddd;
    --color-ink: #1a1d22;
    --color-warning-bg: #fff3cd;
    --color-warning-border: #ffc107;
    --color-warning-text: #856404;

    --radius-card: 8px;
    --radius-panel: 6px;
    --radius-pill: 999px;
    --radius-small: 4px;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;

    /* Typography */
    --font-size-table: 0.8125rem;
    --font-size-table-header: 0.75rem;
    --space-table-cell-y: 8px;
    --space-table-cell-x: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling moved to layout.css */

/* Sidebar Navigation styling moved to sidebar.css */

/* Main Content Area */
.main-wrapper {
    flex: 1;
    margin-left: 250px;
    /* Same as sidebar width */
    width: calc(100% - 250px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.container {
    width: 100%;
    padding: 0;
    /* Removed padding for full width */
    flex: 1;
}

/* Removed padding and margins for full width */
.section {
    margin-bottom: 0;
    padding: 0;
}

/* Hide the title and subtitle */
.title,
.subtitle {
    display: none;
}

/* Hide phase tags */
.phase-tag {
    display: none;
}

.phase-good,
.phase-better,
.phase-best {
    display: none;
}

.content {
    width: 100%;
    background: white;
    position: relative;
    border-radius: 0;
    /* Remove any rounding */
}

/* Header styling moved to header.css */

.main-content {
    padding: 20px;
    min-height: 400px;
}

.form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px dashed #ddd;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dulux-primary);
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.button {
    padding: 8px 16px;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.button-primary {
    background: var(--dulux-primary);
    color: white;
}

.button-secondary {
    background: var(--dulux-dark);
    color: white;
}

.button-danger {
    background: var(--color-danger);
    color: white;
}

.button-danger:hover:not(:disabled) {
    background: var(--color-danger-hover);
}

.button-accent {
    background: var(--dulux-secondary);
    color: white;
}

.button-success {
    background: var(--dulux-success);
    color: white;
}

.mic-button {
    background: var(--dulux-secondary);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chat-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 200px;
    border: 1px solid #ddd;
}

.message {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--dulux-primary);
}

.message.ai {
    border-left-color: var(--dulux-success);
    background: #f1f8e9;
}

.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.preview-panel {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    min-height: 300px;
}

.spec-preview {
    background: white;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.export-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.template-selector {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.template-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.template-option input {
    margin-right: 10px;
}

.metric-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--dulux-primary);
}

.metric-label {
    font-size: 14px;
    color: var(--dulux-light-text);
    margin-top: 5px;
}

.voice-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    opacity: 0.3;
    transition: all 0.3s;
}

.voice-indicator.active {
    opacity: 1;
}

.wave-animation {
    display: flex;
    align-items: flex-end;
    height: 15px;
}

.wave-animation span {
    width: 3px;
    margin: 0 1px;
    background: var(--dulux-secondary);
    height: 3px;
    transition: height 0.2s;
}

.wave-animation.active span {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        height: 3px;
    }

    50% {
        height: 15px;
    }

    100% {
        height: 3px;
    }
}

.wave-animation span:nth-child(2) {
    animation-delay: 0.1s;
}

.wave-animation span:nth-child(3) {
    animation-delay: 0.2s;
}

.wave-animation span:nth-child(4) {
    animation-delay: 0.3s;
}

.wave-animation span:nth-child(5) {
    animation-delay: 0.4s;
}

/* Hide the old navigation */
.navigation {
    display: none;
}

/* Hide the top navbar since we now have a sidebar */
.navbar {
    display: none;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-logo {
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}

.navbar-links {
    display: flex;
    gap: 20px;
}

.navbar-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.navbar-link:hover {
    opacity: 1;
}

/* Adjust card grid for home page */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #ddd;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--dulux-primary);
}

.card h3 {
    color: var(--dulux-primary);
    margin-bottom: 10px;
}

.card p {
    color: var(--dulux-light-text);
    font-size: 14px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: var(--dulux-light-text);
    font-size: 14px;
    background: #ecf0f1;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-wrapper {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        /* Prevent horizontal scroll on mobile */
    }

    /* Sidebar styling moved to sidebar.css */

    .main-wrapper {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
}

@media (max-width: 480px) {
    /* Sidebar styling moved to sidebar.css */
    /* Header styling moved to header.css */

    .main-wrapper {
        margin-left: 0;
        width: 100%;
        padding-top: 0;
    }
}
