/* Asset Configurator Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
#header {
    background-color: rgba(30, 30, 30, 0.95);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-link {
    color: #4fc3f7;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

#header h1 {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #4fc3f7;
    color: #000;
}

.btn-primary:hover {
    background-color: #81d4fa;
}

.btn-secondary {
    background-color: #555;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #666;
}

.btn-danger {
    background-color: #e57373;
    color: #000;
}

.btn-danger:hover {
    background-color: #ef9a9a;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-add {
    background-color: #4caf50;
    color: #fff;
}

.btn-add:hover {
    background-color: #66bb6a;
}

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

/* Main Container */
#main-container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Left Panel */
#left-panel {
    width: 320px;
    min-width: 280px;
    background-color: rgba(30, 30, 30, 0.95);
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-right: 1px solid #444;
}

/* Team Tabs */
.team-tabs {
    display: flex;
    gap: 8px;
}

.team-tab {
    flex: 1;
    padding: 12px;
    background-color: #2a2a2a;
    border: 2px solid #444;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #e0e0e0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.team-tab:hover {
    background-color: #3a3a3a;
}

.team-tab[data-team="red"].active {
    background-color: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
    color: #ff8a80;
}

.team-tab[data-team="blue"].active {
    background-color: rgba(79, 195, 247, 0.3);
    border-color: #4fc3f7;
    color: #80d8ff;
}

.tab-icon {
    font-size: 12px;
}

/* Asset Type Selector */
#asset-type-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#asset-type-selector label {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#assetTypeDropdown {
    padding: 10px 12px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
}

#assetTypeDropdown:focus {
    outline: none;
    border-color: #4fc3f7;
}

/* Asset List */
#asset-list-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    margin-bottom: 10px;
}

#asset-type-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.assets-list {
    flex: 1;
    overflow-y: auto;
}

/* Asset Items */
.asset-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 6px;
    transition: all 0.2s;
    gap: 10px;
}

.asset-item:hover {
    background-color: #3a3a3a;
    border-color: #555;
}

.asset-item.selected {
    background-color: #3a3a3a;
    border-color: #4fc3f7;
}

.asset-name {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

.asset-badge.stock {
    background-color: #555;
    color: #ccc;
}

.asset-badge.modified {
    background-color: #ffa726;
    color: #000;
}

.asset-badge.user {
    background-color: #4caf50;
    color: #fff;
}

.ready-count {
    font-size: 11px;
    color: #81c784;
    background-color: rgba(76, 175, 80, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Right Panel */
#right-panel {
    flex: 1;
    background-color: rgba(25, 25, 25, 0.95);
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#properties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

#properties-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

#asset-source-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

#asset-source-badge.stock {
    background-color: #555;
    color: #ccc;
}

#asset-source-badge.modified {
    background-color: #ffa726;
    color: #000;
}

#asset-source-badge.user {
    background-color: #4caf50;
    color: #fff;
}

#properties-content {
    flex: 1;
    overflow-y: auto;
}

#properties-content.no-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
}

#property-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #444;
    margin-top: 15px;
}

/* Property Sections */
.property-section {
    margin-bottom: 20px;
}

.property-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #4fc3f7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}

.property-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.property-label {
    width: 180px;
    font-size: 13px;
    color: #bbb;
    flex-shrink: 0;
}

.property-input {
    flex: 1;
    padding: 8px 10px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 13px;
}

.property-input:focus {
    outline: none;
    border-color: #4fc3f7;
}

.property-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.property-input.modified {
    border-color: #ffa726;
    background-color: rgba(255, 167, 38, 0.1);
}

/* Select inputs */
select.property-input {
    cursor: pointer;
}

/* Checkbox / Toggle */
.toggle-container {
    display: flex;
    align-items: center;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #444;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-switch.active {
    background-color: #4caf50;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch.active::after {
    transform: translateX(20px);
}

/* Multi-select / Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    min-height: 38px;
}

.tag {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background-color: #4fc3f7;
    color: #000;
    border-radius: 3px;
    font-size: 12px;
}

.tag-remove {
    cursor: pointer;
    font-weight: bold;
}

.tag-remove:hover {
    color: #f44336;
}

/* Unit labels */
.property-unit {
    font-size: 11px;
    color: #888;
    margin-left: 4px;
    font-weight: normal;
}

/* Notification Toast */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s;
}

.notification.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.notification.success {
    background-color: #4caf50;
}

.notification.error {
    background-color: #f44336;
}

.notification.warning {
    background-color: #ffa726;
    color: #000;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #2a2a2a;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    color: #bbb;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #4fc3f7;
}

.form-group small {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #444;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 30px;
    color: #888;
}

.empty-state p {
    margin-bottom: 15px;
}
