/* Glass Morphism Styles for Template Details */

/* Glass Card Container */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    overflow: hidden;
}

/* Glass Header */
.glass-header {
    background: linear-gradient(135deg, rgba(173, 150, 95, 0.8), rgba(184, 160, 105, 0.6));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    color: white;
}

.glass-title {
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Glass Badge */
.glass-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Glass Actions */
.glass-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #333;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-shadow: none;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #333;
}

.glass-btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.glass-btn-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
}

.glass-btn-danger {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
}

.glass-btn-danger:hover {
    background: rgba(220, 53, 69, 0.5);
    border-color: rgba(220, 53, 69, 0.7);
    color: white;
}

.glass-btn-success {
    background: rgba(40, 167, 69, 0.8);
    border-color: rgba(40, 167, 69, 0.9);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.glass-btn-success:hover {
    background: rgba(40, 167, 69, 0.9);
    border-color: rgba(40, 167, 69, 1);
    color: white;
}

.glass-btn-warning {
    background: rgba(255, 193, 7, 0.9);
    border-color: rgba(255, 193, 7, 1);
    color: #212529;
    text-shadow: none;
}

.glass-btn-warning:hover {
    background: rgba(255, 193, 7, 1);
    border-color: rgba(255, 193, 7, 1);
    color: #212529;
}

.glass-btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(108, 117, 125, 0.5);
    color: #495057;
    text-shadow: none;
}

.glass-btn-outline:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(108, 117, 125, 0.8);
    color: #212529;
}

/* Glass Input Fields */
.glass-input {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #333;
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(173, 150, 95, 0.5);
    outline: none;
    box-shadow: 0 0 0 2px rgba(173, 150, 95, 0.2);
}

.glass-input::placeholder {
    color: rgba(33, 37, 41, 0.6);
}

/* Glass Code Blocks */
.glass-code {
    background: rgba(33, 37, 41, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #333;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-x: auto;
}

/* Glass Lists */
.glass-list {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    overflow: hidden;
}

.glass-list-item {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.glass-list-item:last-child {
    border-bottom: none;
}

.glass-list-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Glass Alerts */
.glass-alert {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #333;
}

.glass-alert.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
    color: #155724;
}

.glass-alert.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #721c24;
}

.glass-alert.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #856404;
}

.glass-alert.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #0c5460;
}

/* Glass Body */
.glass-body {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Glass Sections */
.glass-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.1);
}

/* Group-specific section header theming */
.glass-section-header-gold,
.glass-progress .glass-section-header-gold {
    background: linear-gradient(135deg, rgba(173, 150, 95, 0.3) 0%, rgba(184, 160, 105, 0.2) 100%) !important;
    border-bottom: 2px solid rgba(173, 150, 95, 0.5) !important;
    border-radius: 8px !important;
    margin: -15px -15px 15px -15px !important;
    padding: 12px 15px !important;
}

.glass-section-header-gold .glass-section-title,
.glass-progress .glass-section-header-gold .glass-section-title {
    color: #AD965F !important;
    text-shadow: 0 1px 2px rgba(173, 150, 95, 0.3) !important;
    font-weight: 700 !important;
}

.glass-section-header-green,
.glass-progress .glass-section-header-green {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.3) 0%, rgba(32, 201, 151, 0.2) 100%) !important;
    border-bottom: 2px solid rgba(40, 167, 69, 0.5) !important;
    border-radius: 8px !important;
    margin: -15px -15px 15px -15px !important;
    padding: 12px 15px !important;
}

.glass-section-header-green .glass-section-title,
.glass-progress .glass-section-header-green .glass-section-title {
    color: #28a745 !important;
    text-shadow: 0 1px 2px rgba(40, 167, 69, 0.3) !important;
    font-weight: 700 !important;
}

/* Progress section specific overrides */
.glass-progress .glass-section-header-gold,
.glass-progress .glass-section-header-green {
    margin: 0 !important;
    border-radius: 8px !important;
}

.glass-progress .glass-section-header-gold .glass-section-title i,
.glass-progress .glass-section-header-green .glass-section-title i {
    opacity: 1 !important;
}

.glass-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-section-title {
    color: #000000 !important;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.glass-section-title i {
    color: #AD965F;
    opacity: 0.8;
}

/* Glass Section Body */
.glass-section-body {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 0 0 15px 15px;
}

/* Glass Section Header Variants */
.glass-section-header-blue {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(108, 117, 125, 0.05));
    border-radius: 15px 15px 0 0;
    padding: 15px 20px;
    margin: -1px -1px 0 -1px;
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-bottom: none;
}

.glass-section-header-green {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(108, 117, 125, 0.05));
    border-radius: 15px 15px 0 0;
    padding: 15px 20px;
    margin: -1px -1px 0 -1px;
    border: 1px solid rgba(25, 135, 84, 0.2);
    border-bottom: none;
}

.glass-section-header-gold {
    background: linear-gradient(135deg, rgba(173, 150, 95, 0.1), rgba(184, 160, 105, 0.05));
    border-radius: 15px 15px 0 0;
    padding: 15px 20px;
    margin: -1px -1px 0 -1px;
    border: 1px solid rgba(173, 150, 95, 0.2);
    border-bottom: none;
}

/* Glass Card - smaller cards for status display */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Glass Tools */
.glass-tools {
    display: flex;
    gap: 6px;
}

.glass-btn-tool {
    background: rgba(173, 150, 95, 0.1);
    border: 1px solid rgba(173, 150, 95, 0.2);
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #AD965F;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.glass-btn-tool:hover {
    background: rgba(173, 150, 95, 0.2);
    border-color: rgba(173, 150, 95, 0.4);
    transform: translateY(-1px);
}

/* Glass Progress */
.glass-progress {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
}

.glass-progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
}

.glass-progress-fill {
    background: linear-gradient(90deg, #AD965F, #b8a069);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.glass-text {
    color: #000000 !important;
    font-size: 0.9rem;
}

/* Specific form select sizes for consistency */
.table-select {
    max-width: 140px;
    font-size: 0.7rem !important;
    padding: 2px 4px !important;
    height: 24px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(184, 134, 11, 0.6) !important;
    border-radius: 6px !important;
    color: #000000 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(184, 134, 11, 0.2) !important;
    transition: all 0.2s ease !important;
}

.table-select:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #b8860b !important;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

.field-select {
    max-width: 120px;
    font-size: 0.7rem !important;
    padding: 2px 4px !important;
    height: 24px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(184, 134, 11, 0.6) !important;
    border-radius: 6px !important;
    color: #000000 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(184, 134, 11, 0.2) !important;
    transition: all 0.2s ease !important;
}

.field-select:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #b8860b !important;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

.font-size-select {
    max-width: 80px;
    font-size: 0.7rem !important;
    padding: 2px 4px !important;
    height: 24px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(184, 134, 11, 0.6) !important;
    border-radius: 6px !important;
    color: #000000 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(184, 134, 11, 0.2) !important;
    transition: all 0.2s ease !important;
}

.font-size-select:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #b8860b !important;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

.font-style-select {
    max-width: 100px;
    font-size: 0.7rem !important;
    padding: 2px 4px !important;
    height: 24px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(184, 134, 11, 0.6) !important;
    border-radius: 6px !important;
    color: #000000 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(184, 134, 11, 0.2) !important;
    transition: all 0.2s ease !important;
}

.font-style-select:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #b8860b !important;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

/* Font Size Input Fields */
.font-size-input {
    max-width: 90px;
    font-size: 0.7rem !important;
    padding: 2px 6px !important;
    height: 24px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(184, 134, 11, 0.6) !important;
    border-radius: 6px !important;
    color: #000000 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(184, 134, 11, 0.2) !important;
    transition: all 0.2s ease !important;
    text-align: right !important;
}

.font-size-input:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #b8860b !important;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

.font-size-input::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
    font-style: italic;
}

/* Remove number input arrows in Chrome/Safari */
.font-size-input::-webkit-outer-spin-button,
.font-size-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove number input arrows in Firefox */
.font-size-input[type=number] {
    -moz-appearance: textfield;
}

.table-format-select {
    max-width: 120px;
    font-size: 0.7rem !important;
    padding: 2px 4px !important;
    height: 24px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(184, 134, 11, 0.6) !important;
    border-radius: 6px !important;
    color: #000000 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(184, 134, 11, 0.2) !important;
    transition: all 0.2s ease !important;
}

.table-format-select:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #b8860b !important;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

.table-mapping-select {
    max-width: 140px;
    font-size: 0.7rem !important;
    padding: 2px 4px !important;
    height: 24px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(184, 134, 11, 0.6) !important;
    border-radius: 6px !important;
    color: #000000 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(184, 134, 11, 0.2) !important;
    transition: all 0.2s ease !important;
}

.table-mapping-select:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #b8860b !important;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

.table-font-size-select,
.table-font-style-select {
    max-width: 100px;
    font-size: 0.7rem !important;
    padding: 2px 4px !important;
    height: 24px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(184, 134, 11, 0.6) !important;
    border-radius: 6px !important;
    color: #000000 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(184, 134, 11, 0.2) !important;
    transition: all 0.2s ease !important;
}

.table-font-size-select:focus,
.table-font-style-select:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #b8860b !important;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

/* Table cell adjustments for compact design */
.glass-td {
    padding: 8px 12px;
    vertical-align: middle;
    background: transparent;
    text-align: center !important;
    position: relative;
}

.glass-th {
    padding: 12px;
    vertical-align: middle;
    background: transparent;
    text-align: center !important;
    position: relative;
    font-weight: 600;
}

/* Additional table styling for better visibility */
.table-bordered {
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

/* Force center alignment for all table content */
.glass-table * {
    text-align: center !important;
}

.glass-table select,
.glass-table input,
.glass-table .glass-form-select,
.last-row-style-select {
    text-align: center !important;
    margin: 0 auto !important;
}

/* Force center alignment for ALL table mapping content - overrides data type alignments */
.glass-table.table-bordered td,
.glass-table.table-bordered th,
.glass-table td.glass-td,
.glass-table th.glass-th {
    text-align: center !important;
}

/* Data Type Based Alignment for Table Content - DISABLED for mapping interface */
.glass-table td[data-type="numeric"],
.glass-table td.numeric-data,
.glass-table .numeric-cell {
    text-align: center !important;
    padding-right: 8px !important;
}

.glass-table td[data-type="date"],
.glass-table td.date-data,
.glass-table .date-cell,
.glass-table td[data-type="text"],
.glass-table td.text-data,
.glass-table .text-cell,
.glass-table td[data-type="alphanumeric"],
.glass-table td.alphanumeric-data,
.glass-table .alphanumeric-cell {
    text-align: center !important;
    padding-left: 8px !important;
}

/* Auto-detect numeric content and apply center alignment for mapping */
.glass-table td:not(.glass-status):not(.glass-variable-cell):not([class*="select"]) {
    text-align: center !important;
}

/* Preview table data alignment */
.preview-body {
    text-align: left;
}

.preview-body.numeric-preview {
    text-align: right;
}

.glass-table {
    background: transparent;
    margin: 0;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.glass-table thead {
    background: linear-gradient(135deg, rgba(173, 150, 95, 0.3), rgba(184, 160, 105, 0.2));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Ensure Bootstrap table borders work with glass styling */
.table.glass-table td,
.table.glass-table th {
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-collapse: separate;
    text-align: center !important;
}

.glass-th {
    background: transparent !important;
    color: #000000 !important;
    font-weight: 600;
    padding: 10px 8px;
    text-align: center !important;
    font-size: 0.8rem;
}

.glass-th i {
    color: #AD965F;
    opacity: 0.8;
}

/* Group-specific table header theming - Must come after base .glass-th i */
.glass-th-gold {
    background: linear-gradient(135deg, rgba(173, 150, 95, 0.25) 0%, rgba(184, 160, 105, 0.15) 100%) !important;
    border-bottom: 2px solid rgba(173, 150, 95, 0.4) !important;
    color: #AD965F !important;
    text-shadow: 0 1px 2px rgba(173, 150, 95, 0.3) !important;
    font-weight: 700 !important;
}

.glass-th-gold i {
    color: #AD965F !important;
    opacity: 1 !important;
}

.glass-th-green {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.25) 0%, rgba(32, 201, 151, 0.15) 100%) !important;
    border-bottom: 2px solid rgba(40, 167, 69, 0.4) !important;
    color: #28a745 !important;
    text-shadow: 0 1px 2px rgba(40, 167, 69, 0.3) !important;
    font-weight: 700 !important;
}

.glass-th-green i {
    color: #28a745 !important;
    opacity: 1 !important;
}

.glass-table tbody tr {
    transition: all 0.2s ease;
    border: none;
}

.glass-table tbody tr:hover {
    background: rgba(173, 150, 95, 0.08);
}

.glass-row {
    transition: all 0.2s ease;
    border: none;
}

/* Glass Form Elements */
.glass-form-select {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 2px solid rgba(173, 150, 95, 0.4);
    border-radius: 6px;
    color: #000000;
    padding: 2px 4px;
    font-size: 0.7rem;
    width: 100%;
    height: 24px;
    text-align: center;
}

.glass-form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(173, 150, 95, 0.7);
    box-shadow: 0 0 0 0.1rem rgba(173, 150, 95, 0.25);
    outline: none;
}

.glass-form-select:hover {
    border-color: rgba(173, 150, 95, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

/* Last Row Style Select - ensure consistent styling */
.last-row-style-select {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(184, 134, 11, 0.6) !important;
    border-radius: 6px;
    color: #000000 !important;
    padding: 2px 4px;
    font-size: 0.7rem;
    width: 100%;
    height: 24px;
    text-align: center !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(184, 134, 11, 0.2);
    transition: all 0.2s ease;
    outline: none;
}

.last-row-style-select:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #b8860b !important;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    outline: none;
}

.last-row-style-select:hover {
    border-color: rgba(184, 134, 11, 0.8) !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Last Row Style Selection Container */
.last-row-style-selection {
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
}

/* Ensure all table selects have visible borders */
.glass-table select,
.glass-table .table-select,
.glass-table .table-format-select,
.glass-table .table-mapping-select {
    border: 2px solid rgba(173, 150, 95, 0.4) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 6px !important;
}

.glass-table select:focus,
.glass-table .table-select:focus,
.glass-table .table-format-select:focus,
.glass-table .table-mapping-select:focus {
    border-color: rgba(173, 150, 95, 0.7) !important;
    box-shadow: 0 0 0 0.1rem rgba(173, 150, 95, 0.25) !important;
}
    box-shadow: 0 0 0 0.1rem rgba(173, 150, 95, 0.25);
    outline: none;
}

/* Glass Form Styling */
.glass-form {
    background: transparent;
}

/* Glass Parameters Section */
.glass-params {
    padding: 10px 0;
}

.glass-param-field {
    margin-bottom: 4px !important;
    padding: 0 4px !important;
}

.glass-param-label {
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin-bottom: 1px !important;
    display: block !important;
}

/* Parameter Container Styling */
.glass-params {
    padding: 6px 0 !important;
}

#parametersContainer {
    margin-top: 3px !important;
}

#parametersRow {
    margin: 0 !important;
    row-gap: 2px !important;
}

/* Override any Bootstrap or other CSS that might interfere */
.glass-param-field .form-control,
.glass-param-field .form-select,
#parametersContainer .form-control,
#parametersContainer .form-select {
    height: 20px !important;
    font-size: 0.6rem !important;
    padding: 1px 4px !important;
    min-height: 20px !important;
    max-height: 20px !important;
}

/* Parameter Input Specific Styling - Extra Strong Selectors */
input.glass-param-input,
input[name^="param_"],
.glass-param-field input,
#parametersContainer input {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(184, 134, 11, 0.6) !important;
    border-radius: 4px !important;
    color: #000000 !important;
    padding: 1px 4px !important;
    font-size: 0.6rem !important;
    width: 100% !important;
    height: 20px !important;
    max-height: 20px !important;
    min-height: 20px !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(184, 134, 11, 0.2) !important;
    transition: all 0.2s ease !important;
}

input.glass-param-input:focus,
input[name^="param_"]:focus,
.glass-param-field input:focus,
#parametersContainer input:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #b8860b !important;
    box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
    height: 20px !important;
    max-height: 20px !important;
    min-height: 20px !important;
}

.glass-help-text {
    font-size: 0.6rem !important;
    color: #000000 !important;
    margin-top: 2px !important;
    text-align: center;
}

.glass-param-label {
    font-size: 0.6rem !important;
    margin-bottom: 1px !important;
    font-weight: 600 !important;
    display: block !important;
}

/* Variable Cell Compact */
.glass-variable-cell {
    text-align: center;
    padding: 4px;
}

.glass-variable-name {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #000000;
    background: rgba(173, 150, 95, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 2px;
}

.glass-variable-description {
    font-size: 0.7rem;
    color: #000000;
    margin: 0;
}

/* Status badges */
.glass-status-mapped {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 500;
}

.glass-status-unmapped {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Action buttons glass style */
.glass-actions-area {
    text-align: right;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 6px;
}

.glass-action-btn {
    background: rgba(173, 150, 95, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(173, 150, 95, 0.3);
    border-radius: 6px;
    color: #000000;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: none;
    outline: none;
}

.glass-action-btn:hover {
    background: rgba(173, 150, 95, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(173, 150, 95, 0.15);
}

.glass-action-btn-primary {
    background: rgba(173, 150, 95, 0.8);
    color: white;
}

.glass-action-btn-primary:hover {
    background: rgba(173, 150, 95, 1);
    color: white;
}

.glass-help-text {
    font-size: 0.65rem;
    color: #000000;
    margin-top: 2px;
    text-align: right;
}

/* Compact spacing adjustments */
.glass-section + .glass-section {
    margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-header {
        padding: 12px 15px;
    }
    
    .glass-title {
        font-size: 1.25rem;
    }
    
    .glass-body {
        padding: 15px;
    }
    
    .glass-section {
        padding: 12px;
    }
    
    .glass-btn span {
        display: none !important;
    }
    
    .glass-btn {
        padding: 6px 8px;
    }
    
    .glass-param-field {
        margin-bottom: 8px;
    }
}

/* Compact Save Area Styling */
.glass-save-area {
    margin-top: 10px;
    padding: 8px 0;
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
}

.glass-save-btn {
    background: linear-gradient(135deg, #b8860b, #daa520) !important;
    border: 2px solid #b8860b !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
    overflow: hidden !important;
}

.glass-save-btn:hover {
    background: linear-gradient(135deg, #daa520, #ffd700) !important;
    border-color: #daa520 !important;
    color: #000000 !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.glass-save-btn:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4) !important;
}

/* Glass Status Badges */
.glass-status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.glass-status-secondary {
    background: rgba(108, 117, 125, 0.3);
    color: #000000;
    border-color: rgba(108, 117, 125, 0.5);
}

.glass-status-success {
    background: rgba(40, 167, 69, 0.3);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.5);
}

.glass-status-warning {
    background: rgba(255, 193, 7, 0.3);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.5);
}

/* Glass Modal Styles */
.glass-modal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 32px rgba(31, 38, 135, 0.2);
}

.glass-modal-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px 20px 0 0;
    padding: 20px 24px 16px;
}

.glass-modal-body {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
}

.glass-modal-footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0 0 20px 20px;
    padding: 16px 24px 20px;
}

.glass-btn-close {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.glass-btn-close:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
    transform: scale(1.1);
}

.glass-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.glass-btn-light {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(233, 236, 239, 0.6));
    color: #495057;
    border-color: rgba(248, 249, 250, 0.5);
}

.glass-btn-light:hover {
    background: linear-gradient(135deg, rgba(233, 236, 239, 0.9), rgba(222, 226, 230, 0.7));
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.glass-btn-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.8), rgba(32, 201, 151, 0.6));
    color: white;
    border-color: rgba(40, 167, 69, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.glass-btn-success:hover {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.9), rgba(25, 135, 84, 0.7));
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.glass-alert {
    background: linear-gradient(135deg, rgba(248, 215, 218, 0.8), rgba(242, 222, 222, 0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
}

.glass-parameters-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glass Form Controls */
.glass-parameters-container .form-control {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.glass-parameters-container .form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(40, 167, 69, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.glass-parameters-container .form-label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Glass Modal Animation */
.modal.show .glass-modal {
    animation: glassModalSlideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes glassModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        backdrop-filter: blur(20px);
    }
}

/* Modal parameter inputs - ensure consistent height */
.modal .form-control-lg,
.modal input[type="text"].form-control-lg,
.modal input[type="date"].form-control-lg,
.modal input[type="number"].form-control-lg,
.modal .dropdown-search {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    line-height: 1.5 !important;
    padding: 0.75rem 0.75rem !important;
    font-size: 1rem !important;
}