/**
 * RE::DACT Layout Styles
 * 
 * This file contains:
 * - Header styles
 * - Layout container (content-wrapper)
 * - Main content area
 * - Split view columns
 */

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    padding: 0 24px;
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border-light);
    flex-shrink: 0;
    width: 100%;
    position: relative;
    z-index: 1100;
}

.app-logo {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    color: #000000 !important; 
    opacity: 1 !important;
    z-index: 1200;
}

.logo-hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
    flex-shrink: 0;
}

.logo-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000000 !important; 
    transition: all var(--transition-fast);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* --- LAYOUT CONTAINER --- */
.content-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* --- MAIN CONTENT --- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

.split {
    flex: 1;
    display: flex;
    overflow: hidden;
    gap: 1px;
    background: var(--color-border-light);
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-primary);
    overflow: hidden;
    min-width: 0;
}

/* --- GRADIENT VIEW SWITCHER (Mobile) --- */
.view-gradient-switcher {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    cursor: pointer;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
}

.view-right {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.1), transparent);
    justify-content: flex-end;
    padding-right: 10px;
}

.view-left {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
    justify-content: flex-start;
    padding-left: 10px;
}

.view-gradient-switcher::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.3)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.view-left::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.3)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E");
}

.view-gradient-switcher:hover::after {
    stroke: rgba(0,0,0,0.6);
    transform: translateX(2px);
}

.view-left:hover::after {
    transform: translateX(-2px);
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: #1A1A1A;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}
