/* Global Styles */
:root {
    --primary-color: #ff9500;
    --primary-hover: #e68600;
    --secondary-color: #1a1a2e;
    --accent-blue: #2196f3;
    --accent-red: #dc2626;
    --danger-color: #dc2626;
    --danger-hover: #b91c1c;
    --success-color: #16a34a;
    --background: #f9fafb;
    --surface: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3e6b 50%, #ff9500 100%);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    height: 35px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
    font-weight: 500;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 61px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 61px);
        background: linear-gradient(135deg, #1a1a2e 0%, #2d3e6b 100%);
        flex-direction: column;
        padding: 2rem 0;
        gap: 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        opacity: 1;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 160px);
    padding: 2rem 0;
}

/* Reduce top padding for teleprompter page specifically */
.main-content:has(.teleprompter-container) {
    padding-top: 0.5rem;
}

@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem 0;
        min-height: calc(100vh - 140px);
    }
    
    .main-content:has(.teleprompter-container) {
        padding-top: 0.25rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem 0;
    }
}

/* Messages */
.messages {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 20px;
}

.message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.message.success {
    background-color: #d1fae5;
    color: #065f46;
}

.message.error {
    background-color: #fee2e2;
    color: #991b1b;
}

.message.info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Footer */
.footer {
    background-color: var(--surface);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
        font-size: 0.875rem;
    }
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .form-container {
        margin: 1rem auto;
        padding: 1.5rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1rem;
        margin: 0.5rem auto;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    min-height: 44px;
}

@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.85rem;
        font-size: 16px;
        min-height: 48px;
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    min-height: 44px;
    min-width: 44px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #1a1a2e 0%, #ff9500 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

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

.btn-danger:hover {
    background-color: var(--danger-hover);
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #2d3e50;
    filter: brightness(1.1);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cards */
.card {
    background-color: var(--surface);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        gap: 0.75rem;
        margin-top: 1rem;
    }
}

.feature-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s;
}

@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: 1.25rem;
    }
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.feature-card a:hover {
    color: var(--primary-hover);
}

/* Teleprompter specific */
.teleprompter-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 2rem 2rem;
}

@media (max-width: 768px) {
    .teleprompter-container {
        padding: 0 1rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .teleprompter-container {
        padding: 0 0.5rem 0.5rem 0.5rem;
    }
}

.teleprompter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 968px) {
    .teleprompter-grid {
        grid-template-columns: 1fr;
    }
    
    /* Make video wrapper full width on mobile, maintain 9:16 */
    .video-wrapper {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .teleprompter-grid {
        gap: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .teleprompter-grid {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

.camera-section, .teleprompter-section {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .camera-section, .teleprompter-section {
        padding: 1rem;
        border-radius: 0.375rem;
    }
}

@media (max-width: 480px) {
    .camera-section, .teleprompter-section {
        padding: 0.75rem;
    }
}

.camera-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Camera Header */
.camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .camera-header {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
        flex-wrap: wrap;
    }
    
    .camera-header h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .camera-header {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .camera-header h2 {
        font-size: 1.1rem;
    }
}

.camera-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.camera-header h2 {
    margin: 0;
}

.camera-status-mini {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: normal;
    padding: 0.25rem 0.75rem;
    background-color: var(--background);
    border-radius: 0.375rem;
    white-space: nowrap;
}

.camera-status-mini.hidden {
    display: none;
}

.camera-section.minimized .camera-status-mini {
    display: inline-block;
}

.camera-header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Minimize Button */
.btn-minimize {
    background-color: var(--text-secondary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

@media (max-width: 768px) {
    .btn-minimize {
        width: 44px;
        height: 44px;
        font-size: 1.75rem;
    }
}

.btn-minimize:hover {
    background-color: var(--primary-color);
}

.btn-minimize.maximized {
    transform: rotate(0deg);
}

.btn-minimize.minimized {
    transform: rotate(180deg);
}

/* Minimized Camera Section */
.camera-section.minimized {
    grid-column: 1 / -1;
    padding: 1rem 1.5rem;
    position: relative;
}

.camera-section.minimized .camera-header {
    margin-bottom: 0;
}

.camera-section.minimized .camera-content {
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Ensure video element maintains its dimensions for proper capture (9:16 portrait) */
.camera-section.minimized #camera-preview {
    min-width: 270px;
    min-height: 480px;
}

.camera-section.minimized .video-wrapper {
    max-width: 270px;
    aspect-ratio: 9 / 16;
}

/* Ensure canvases stay rendered */
.camera-section.minimized #camera-canvas,
.camera-section.minimized #roi-canvas {
    display: block !important;
}

.camera-section.minimized .camera-status-mini {
    display: inline-block !important;
}

/* Reduce gap when camera is minimized */
.teleprompter-grid.camera-minimized {
    gap: 1rem;
}

/* Full-width Teleprompter when Camera is Minimized */
.teleprompter-section.full-width {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    max-height: none;
}

/* Make teleprompter display fill remaining height when minimized */
.teleprompter-section.full-width .teleprompter-display {
    max-height: none;
    height: calc(100vh - 300px);
    flex: 1;
}

#camera-preview {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    background-color: #000;
    object-fit: cover;
    display: block;
    transform: rotate(0deg);
}

#product-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.375rem;
    background-color: var(--background);
}

.teleprompter-display {
    background-color: #000;
    color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    min-height: 400px;
    font-size: 1.5rem;
    line-height: 1.8;
    overflow-y: auto;
    max-height: 600px;
}

@media (max-width: 768px) {
    .teleprompter-display {
        padding: 1.5rem;
        font-size: 1.25rem;
        min-height: 300px;
        max-height: 500px;
    }
}

@media (max-width: 480px) {
    .teleprompter-display {
        padding: 1rem;
        font-size: 1.1rem;
        min-height: 250px;
        max-height: 400px;
        line-height: 1.6;
    }
}

.controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .controls {
        gap: 0.75rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .controls {
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Privacy notice - now as tooltip */
.info-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 0.5rem;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #1a1a2e 0%, #ff9500 100%);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    font-style: italic;
    cursor: help;
    vertical-align: middle;
    transition: transform 0.2s;
}

.info-icon:hover {
    transform: scale(1.1);
}

.info-icon-wrapper .tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 8px);
    background-color: #1f2937;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: normal;
    line-height: 1.5;
    width: 300px;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

@media (max-width: 768px) {
    .info-icon-wrapper .tooltip {
        width: 250px;
        font-size: 0.8rem;
        padding: 0.6rem 0.85rem;
        left: auto;
        right: 0;
        transform: none;
    }
}

@media (max-width: 480px) {
    .info-icon-wrapper .tooltip {
        width: calc(100vw - 40px);
        max-width: 280px;
    }
}

.info-icon-wrapper .tooltip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #1f2937;
}

.info-icon-wrapper:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Loading spinner */
.spinner {
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ROI (Region of Interest) Overlay - ALWAYS 9:16 portrait */
.video-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    background-color: #000;
    border-radius: 0.5rem;
    overflow: hidden;
}

.roi-overlay {
    position: absolute;
    border: 3px solid rgba(0, 255, 0, 0.7);
    background-color: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    cursor: move;
    z-index: 10;
    pointer-events: auto;
}

.roi-overlay:hover {
    border-color: rgba(0, 255, 0, 0.9);
    background-color: rgba(0, 255, 0, 0.15);
}

.roi-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: rgba(0, 255, 0, 0.9);
    border: 2px solid white;
    border-radius: 2px;
    z-index: 11;
}

@media (max-width: 768px) {
    .roi-handle {
        width: 18px;
        height: 18px;
        border: 3px solid white;
    }
}

.roi-handle:hover {
    background-color: rgba(0, 255, 0, 1);
    transform: scale(1.2);
}

/* Corner handles */
.roi-handle.nw {
    top: -6px;
    left: -6px;
    cursor: nw-resize;
}

.roi-handle.ne {
    top: -6px;
    right: -6px;
    cursor: ne-resize;
}

.roi-handle.sw {
    bottom: -6px;
    left: -6px;
    cursor: sw-resize;
}

.roi-handle.se {
    bottom: -6px;
    right: -6px;
    cursor: se-resize;
}

/* Edge handles */
.roi-handle.n {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: n-resize;
}

.roi-handle.s {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: s-resize;
}

.roi-handle.e {
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    cursor: e-resize;
}

.roi-handle.w {
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    cursor: w-resize;
}

.roi-label {
    position: absolute;
    top: -25px;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}

/* Detection Mode Toggle Switch */
.mode-selection-panel {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .mode-selection-panel {
        padding: 0.85rem;
        margin-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .mode-selection-panel {
        padding: 0.75rem;
        margin-top: 0.5rem;
    }
}

.mode-toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mode-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mode-label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.mode-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

@media (max-width: 768px) {
    .toggle-switch {
        width: 70px;
        height: 36px;
        border-radius: 36px;
    }
    
    .toggle-slider {
        width: 30px;
        height: 30px;
    }
    
    .toggle-switch.active .toggle-slider {
        transform: translateX(34px);
    }
}

.toggle-switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-switch.active {
    background: linear-gradient(135deg, #1a1a2e 0%, #ff9500 100%);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(30px);
}

.mode-help-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Detection State Indicators */
.state-indicator {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.state-indicator.monitoring {
    background-color: #dbeafe;
    color: #1e40af;
    animation: pulse 2s ease-in-out infinite;
}

.state-indicator.product-present {
    background-color: #d1fae5;
    color: #065f46;
}

.state-indicator.waiting-removal {
    background-color: #fef3c7;
    color: #92400e;
}

.state-indicator.idle {
    background-color: #f3f4f6;
    color: #6b7280;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Baseline Capture Confirmation */
.baseline-confirmation {
    background-color: #fef3c7;
    border: 2px solid #fbbf24;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

.baseline-confirmation h3 {
    color: #92400e;
    margin-bottom: 0.5rem;
}

.baseline-confirmation p {
    color: #78350f;
    margin-bottom: 1rem;
}

.baseline-confirmation .controls {
    justify-content: center;
}

/* Phase Indicators */
.phase-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.phase-indicator.phase-1 {
    background-color: #dbeafe;
    color: #1e40af;
    border: 2px solid #3b82f6;
}

.phase-indicator.phase-2 {
    background-color: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.phase-indicator::before {
    content: "●";
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

#product-status {
    position: relative;
}

#product-status p {
    margin: 0.5rem 0;
}

/* Product Removed Button - special styling for continuous mode */
#product-removed-btn {
    background-color: #10b981;
    color: white;
    font-weight: 500;
}

#product-removed-btn:hover:not(:disabled) {
    background-color: #059669;
}

#product-removed-btn:disabled {
    opacity: 0.6;
}
