/**
 * toolbar.css
 * 툴바 스타일
 */

#toolbar {
    background-color: var(--bg-panel);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    position: relative;
    /* For absolute centering */
    justify-content: space-between;
}

.toolbar-section {
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 2;
    /* Ensure buttons are above center element if overlap */
}

.toolbar-section:not(:last-child) {
    border-right: none;
    padding-right: 0;
}

#toolbar button {
    padding: 6px;
    /* Reduced horizontal padding for icons */
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background-color: #4a4a4a;
    color: white;
    border: 1px solid #000;
    transition: none;
    box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.2), inset -2px -2px 0 rgba(0, 0, 0, 0.5);
    border-radius: 0;
}

#toolbar button .material-symbols-outlined {
    font-size: 20px;
}

#toolbar button:hover {
    background-color: #5a5a5a;
    border-color: #000;
}

#toolbar button:active {
    background-color: #333;
    transform: translateY(2px);
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.5), inset -2px -2px 0 rgba(255, 255, 255, 0.1);
}

#toolbar button:disabled {
    background-color: #333;
    border-color: #555;
    color: #777;
    cursor: not-allowed;
    box-shadow: none;
}

/* Color overrides for specific action buttons */
#new-project,
#load-project {
    background-color: var(--primary-color) !important;
}

#new-project:hover,
#load-project:hover {
    background-color: var(--primary-hover) !important;
}



/* Center Project Name */
.toolbar-info {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 1;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

#project-name-display {
    font-size: 16px;
    font-weight: normal;
    padding: 6px 16px;
    background-color: transparent;
    border: none;
    color: #ffffff;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#project-name-display.no-project {
    color: rgba(255, 255, 255, 0.3);
    font-style: normal;
}