/* 
 * ORAND Core CSS - Brand Styles & Variables
 * Part of ORAND Micro-Tools Framework
 * Copyright © 2026 ORAND Advisors
 */

/* ============================================================================
   ORAND BRAND COLORS & VARIABLES
   ============================================================================ */

:root {
    /* Primary Brand Colors */
    --orand-blue: #0097d7;
    --orand-orange: #f68710;
    
    /* Neutrals */
    --gray-light: #f4f6f8;
    --gray-medium: #e0e0e0;
    --gray-dark: #333;
    --text-main: #2c3e50;
    --text-secondary: #666;
    --white: #ffffff;
    
    /* UI Elements */
    --border-color: #ccc;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-strong: 0 4px 12px rgba(0,0,0,0.2);
    
    /* State Colors */
    --success: #4caf50;
    --error: #f44336;
    --warning: #ff9800;
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--gray-light);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ============================================================================
   HEADER / TOPBAR
   ============================================================================ */

header {
    background-color: var(--white);
    border-bottom: 3px solid var(--orand-orange);
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    z-index: 10;
    flex-shrink: 0;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--orand-blue);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-left: 1px solid var(--border-color);
    padding-left: 10px;
    margin-left: 5px;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

button {
    background-color: var(--orand-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
}

button:hover {
    background-color: #007bb5;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button.secondary {
    background-color: white;
    color: var(--orand-blue);
    border: 1px solid var(--orand-blue);
}

button.secondary:hover {
    background-color: #eef7fb;
}

button.active-mode {
    background-color: var(--orand-orange);
    color: white;
    border: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

input[type="file"] {
    display: none;
}

/* ============================================================================
   TAB SYSTEM
   ============================================================================ */

.tabs {
    display: flex;
    background: var(--gray-medium);
    padding-left: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    background: var(--gray-medium);
    border: none;
    border-right: 1px solid var(--border-color);
    color: #555;
    font-weight: 600;
    border-radius: 0;
}

.tab-btn:hover {
    background: #d0d0d0;
}

.tab-btn.active {
    background: var(--white);
    color: var(--orand-blue);
    border-top: 3px solid var(--orand-blue);
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
}

/* ============================================================================
   MAIN CONTENT AREA
   ============================================================================ */

main {
    flex: 1;
    position: relative;
    background: var(--white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tab-content {
    display: none;
    height: 100%;
    width: 100%;
}

.tab-content.active {
    display: block;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
    background-color: var(--gray-dark);
    color: rgba(255,255,255,0.7);
    padding: 10px 20px;
    font-size: 0.8rem;
    text-align: center;
    border-top: 2px solid var(--orand-orange);
    flex-shrink: 0;
}

/* ============================================================================
   TOAST / MESSAGE BOX
   ============================================================================ */

#message-box {
    position: fixed;
    bottom: 50px;
    right: 20px;
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    display: none;
    z-index: 1000;
    box-shadow: var(--shadow-strong);
    border-left: 5px solid var(--orand-orange);
    max-width: 400px;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.separator {
    border-left: 1px solid #ddd;
    margin: 0 5px;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
