/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Layout */
.app-container {
    min-height: 100vh;
    background-color: #111827;
    padding: 1rem;
    zoom: 1.4;
}

.app-content {
    max-width: 70%;
    margin: 0 auto;
}

/* Header */
.app-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.75rem;
    text-align: center;
}

/* Card */
.card {
    background-color: #1f2937;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-padding {
    padding: 0.5rem;
}

.card-padding-lg {
    padding: 1rem;
}

.card-spacing {
    margin-top: 0.5rem;
}

/* Table Container */
.table-container {
    overflow-x: auto;
}

/* Editable Table */
.table-editable {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.table-editable th {
    padding: 0.25rem 0.5rem;
    text-align: left;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    border: 1px solid #4b5563;
    background-color: #374151;
}

.table-editable th.th-center {
    text-align: center;
}

.table-editable th.th-checkbox {
    width: 2rem;
}

.table-editable th.th-actions {
    width: 3rem;
}

.table-editable th.th-gs {
    width: 4rem;
}

.table-editable tbody tr {
    border: 1px solid #4b5563;
}

.table-editable td {
    padding: 0.125rem 0.5rem;
    border: 1px solid #4b5563;
}


.table-editable td.td-center {
    text-align: center;
}

.table-editable td.td-actions {
    padding: 0.125rem 0.25rem;
    text-align: center;
}

/* Export Table */
.table-export {
    font-size: 0.875rem;
    border-collapse: collapse;
    background-color: white;
}

.table-export tr {
    border: 1px solid #4b5563;
}

.table-export td {
    padding: 0;
    border: 1px solid #4b5563;
    font-size: 0.75rem;
    line-height: 0;
}

.table-export td.td-icon {
    padding: 0;
    width: 2rem;
    font-size: 0;
}

.table-export td.td-text {
    padding: 2px 0.5rem;
    color: black;
    font-weight: 600;
    line-height: 1;
}

.table-export td.td-center {
    text-align: center;
}

.table-export td.td-raid {
    background-color: #f3f4f6;
    text-align: center;
    padding: 2px 0.5rem;
    line-height: 1;
}

.table-export td.td-raid.locked {
    background-color: #fca5a5;
}

/* Export table headers */
.table-export th {
    padding: 2px 0.5rem;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
    border: 1px solid #4b5563;
    background-color: #374151;
}

/* Export Container */
.export-container {
    background-color: transparent;
    display: inline-block;
}

/* Lockout styles in export table */
.lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #991b1b;
}

/* Clickable raid cells */
.td-raid-clickable {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s;
}

.td-raid-clickable:hover {
    opacity: 0.8;
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.td-raid-clickable:active {
    opacity: 0.6;
}

/* Input Fields */
.input-editable {
    width: 100%;
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: black;
}

.input-editable:focus {
    outline: none;
    ring: 1px solid #3b82f6;
}

.input-name {
    font-weight: bold;
}

.input-spec {
    font-weight: 600;
}

.input-gs {
    text-align: center;
    font-weight: 600;
}

.input-editable:disabled {
    opacity: 0.5;
}

/* Checkbox */
.checkbox {
    cursor: pointer;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-blue {
    background-color: #2563eb;
    color: white;
}

.btn-blue:hover {
    background-color: #1d4ed8;
}

.btn-purple {
    background-color: #9333ea;
    color: white;
}

.btn-purple:hover {
    background-color: #7e22ce;
}

.btn-orange {
    background-color: #ea580c;
    color: white;
}

.btn-orange:hover {
    background-color: #c2410c;
}

.btn-delete {
    padding: 0.125rem;
    background-color: transparent;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-delete:hover {
    background-color: rgba(220, 38, 38, 0.7);
}

/* Toolbar */
.toolbar {
    padding: 0.5rem;
    background-color: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #4b5563;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.toolbar-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.toolbar-info {
    color: #d1d5db;
    font-size: 0.75rem;
}

/* Section Title */
.section-title {
    color: white;
    font-weight: bold;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

/* Icon Image */
.class-icon {
    width: 2rem;
    height: 1.3rem;
    object-fit: cover;
    display: block;
}

/* Hidden Input */
.hidden {
    display: none;
}

/* Raid column width */
.th-raid {
    width: 3rem;
}
