/* Form Styles */
.form-container {
    padding: 0 1.5rem;
}

/* Form Section */
.form-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-section-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

.form-section-header h4 {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.025em;
}

.form-section-header i {
    color: #495057;
    font-size: 0.875rem;
}

.form-section-body {
    padding: 1.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Form Controls */
.form-control {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #374151;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    height: 45px;
}

/* Rounded Form Controls */
.form-control-rounded {
    border-radius: 36px;
}

/* Form Spacing */
.padding-1 {
    padding: 1rem;
}

.mb20 {
    margin-bottom: 1.25rem;
}

.mt20 {
    margin-top: 1.25rem;
}

/* Select2 Custom Styles */
.select2-container--default .select2-selection--single {
    height: auto;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 36px;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
}

.select2-container--default .select2-selection--single:focus {
    border-color: #a3bffa;
    box-shadow: 0 0 0 3px rgba(163, 191, 250, 0.15);
    outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #374151;
    line-height: 1.5;
    padding-left: 0;
    padding-right: 20px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #4299e1;
    color: #fff;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem;
}

.select2-dropdown {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.select2-search--dropdown {
    padding: 0.5rem;
}

/* Form Label */
.form-label,
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

/* Form Label with Required Field */
.form-label.required:after,
.form-group label.required:after {
    content: '*';
    color: #dc2626;
    margin-left: 0.25rem;
}

/* Form Control Styles - Merged with base .form-control */

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

/* Select2 Height Adjustment */
.select2-container .select2-selection--single {
    height: 45px !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    padding: 8px !important;
}


.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px !important;
    font-size: 0.95rem;
}

/* Form Label Styles - Merged with base .form-group label */

/* Form Help Text - Merged with base .form-text */

/* Required Field Indicator */
.required {
    color: #e74c3c;
    margin-left: 0.25rem;
}

/* Form Section Title */
.form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Form Icon */
.form-icon {
    font-size: 1.375rem;
    color: #4a5568;
    margin-right: 0.75rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-actions .btn {
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    letter-spacing: 0.025em;
}

.form-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: currentColor;
}

.form-actions .btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-actions .btn i {
    font-size: 0.875rem;
}

.form-actions .btn-secondary {
    color: #6b7280;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
}

.form-actions .btn-secondary:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.form-actions .btn-primary {
    color: #fff;
    background-color: #3b82f6;
    border: 1px solid #3b82f6;
}

.form-actions .btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* Enhanced form actions with subtle animations */
.form-actions {
    position: relative;
    overflow: hidden;
}

.form-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.form-actions .btn {
    position: relative;
    overflow: hidden;
}

.form-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.form-actions .btn:hover::before {
    left: 100%;
}

/* Responsive form actions */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-grid-full {
    grid-column: 1 / -1;
}

/* Form Field Spacing */
.form-field-group {
    margin-bottom: 1.5rem;
}

.form-field-group:last-child {
    margin-bottom: 0;
}

/* Form Field Help Text */
.form-help-text {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* Form Validation */
.form-error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Form Input States */
.form-control.has-error {
    border-color: #e74c3c;
}

.form-control.has-error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

/* Form Field Icons */
.form-field-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    pointer-events: none;
}

.form-field-icon-left {
    left: 1rem;
}

.form-field-icon-right {
    right: 1rem;
}

.form-control-with-icon-left {
    padding-left: 2.5rem;
}

.form-control-with-icon-right {
    padding-right: 2.5rem;
}

.form-control:focus {
    border-color: #a3bffa;
    box-shadow: 0 0 0 3px rgba(163, 191, 250, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Form Control States */
.form-control:disabled,
.form-control[readonly] {
    background-color: #f3f4f6;
    opacity: 1;
    cursor: not-allowed;
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Form Feedback */
.invalid-feedback,
.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.invalid-feedback {
    color: #dc3545;
}

.valid-feedback {
    color: #198754;
}

.is-invalid ~ .invalid-feedback,
.is-valid ~ .valid-feedback {
    display: block;
}

/* Form Text - Merged with base .form-text */

.form-text.text-danger {
    color: #dc3545;
}

/* Form Grid */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.form-col {
    flex: 1 0 0%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

/* Textarea */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.btn-secondary {
    color: #374151;
    background-color: #fff;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.btn-primary {
    color: #fff;
    background-color: #495057;
    border-color: #495057;
}

.btn-primary:hover {
    background-color: #343a40;
    border-color: #343a40;
}

/* Alert Styles */
.alert {
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

/* Line Management Alerts */
.line-error-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

#lineExistMessage {
    display: none;
    margin-bottom: 1rem;
}

/* Validation Messages */
.validation-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* Form Validation Messages */
#messageOptimunTemp,
#tempAlert,
#messageOptimunPres,
#pressureAlert,
#Keycost,
#LineLength,
#OZ_Factor {
    color: red;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.page-title {
    display: flex;
    align-items: center;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.page-title i {
    margin-right: 0.75rem;
    color: #5b73e8;
    font-size: 1.1rem;
}

/* Custom Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid #d1d5db;
    appearance: none;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.form-check-input:checked {
    background-color: #495057;
    border-color: #495057;
}

.form-check-input:focus {
    border-color: #a3bffa;
    box-shadow: 0 0 0 3px rgba(163, 191, 250, 0.15);
    outline: none;
}

.form-check-label {
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

small {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Select Styles */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    appearance: none;
    padding-right: 2.5rem;
}

/* Button Icons */
.btn i {
    font-size: 0.875rem;
    margin-right: 0.375rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-section-body {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Additional Alert Styles - Merged with base .alert-danger */

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

/* Table and Data Display Styles */
/* Modern Table Base */
.table-responsive {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: calc(100% - 2rem);
    overflow: visible;
}

.table {
    width: 100%;
    margin-bottom: 0;
    background: white;
    border-collapse: separate;
    border-spacing: 0;
}

.table th,
.table td {
    padding: 12.75px;
    vertical-align: middle;
    border-top: 1px solid #dde2ef;
}

.table thead th {
    background: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.6rem 1rem;
    border-bottom: 2px solid #e9ecef;
    color: #495057;
    vertical-align: middle;
    height: 45px;
}

.table tbody tr {
    transition: all 0.2s ease;
    font-size: 0.95rem;
    height: 45px;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody td {
    padding: 0.5rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    height: 45px;
    line-height: 1.2;
}

/* Table Controls */
.table-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    /* margin: 0 1.5rem 1rem; */
    border-radius: 8px;
}

/* DataTables Length and Filter Controls */
.table-controls .dataTables_length,
.table-controls .dataTables_filter {
    margin: 0;
}

.table-controls .dataTables_length label,
.table-controls .dataTables_filter label,
.table-search label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-controls select,
.table-controls input[type="search"],
.table-search input,
.table-length select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    height: 32px;
    width: 250px;
}

.table-controls select,
.table-length select {
    padding-right: 28px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    width: auto;
}

.table-controls select:focus,
.table-controls input[type="search"]:focus,
.table-search input:focus,
.table-length select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.table-search,
.table-length {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Table Footer */
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #fff;
    border-top: 1px solid #dee2e6;
}

.table-info {
    /* color: #6c757d; */
    font-size: 14px;
}

.table-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.table-pagination .page-link {
    height: 32px;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #007bff;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    line-height: 1;
}

.table-pagination .page-link:hover:not(.disabled) {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #0056b3;
}

.table-pagination .active .page-link {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
    font-weight: 500;
}

.table-pagination .disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
    opacity: 0.65;
}
.table-column-width-25 {
    width: 25%;
}

.table-column-width-20 {
    width: 20%;
}

.table-column-width-15 {
    width: 15%;
}

.table-icon {
    font-size: 1.25rem;
}

.table-header-icon {
    color: #495057;
    margin-right: 0.5rem;
}

/* DataTables Custom Styles */
.dataTables_wrapper {
    padding: 1rem;
}

.dataTables_length {
    float: right;
    padding-right: 1rem;
}

.dataTables_filter {
    float: left;
    padding-left: 1rem;
}

/* Table responsive - Merged with base .table-responsive */

/* Sortable Table Headers */
.sort {
    cursor: pointer;
    text-align: center;
    position: relative;
    padding-right: 1.5rem;
}

.sort:after {
    content: '\f0dc';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.sort.asc:after {
    content: '\f0de';
    opacity: 1;
}

.sort.desc:after {
    content: '\f0dd';
    opacity: 1;
}

/* Table Action Icons */
.table-action-icon {
    font-size: 1.375rem;
    color: #4299e1;
    margin: 0 0.25rem;
    transition: color 0.2s ease;
}

.table-action-icon:hover {
    color: #2b6cb0;
}

.table-action-icon.edit {
    color: #4299e1;
}

.table-action-icon.delete {
    color: #e53e3e;
}

/* Modal Styles */
/* Spinner */
/* Modern Table Styles */
.table-responsive {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: calc(100% - 2rem);
    overflow: visible;
}

/* Modern Table Base - Merged with base .table */
.modern-table,
.software-table {
    width: 100%;
    margin-bottom: 0;
    background: white;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Table Header - Merged with base .table thead th */
.modern-table thead th,
.software-table th {
    background: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border-bottom: 2px solid #e9ecef;
    color: #344767;
    vertical-align: middle;
    height: 45px;
    line-height: 1.2;
}

/* Table Body - Merged with base .table tbody styles */
.modern-table tbody tr,
.software-table tbody tr {
    transition: all 0.2s ease;
    font-size: 0.95rem;
    height: 45px;
}

.modern-table tbody tr:hover,
.software-table tbody tr:hover {
    background-color: #f8f9fa;
}

.modern-table tbody td,
.software-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    height: 45px;
    line-height: 1.2;
}

/* Status Badges */
/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

/* Action Button Base */
.action-button,
.device-action-btn,
.version-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #6c757d;
    text-decoration: none;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

/* Action Button Hover */
.action-button:hover,
.device-action-btn:hover,
.version-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

/* Action Button Icon */
.action-button i,
.device-action-btn i,
.version-action-btn i {
    font-size: 14px;
}

/* Action Button Variants */
.action-button.edit,
.device-action-btn.edit,
.version-action-btn.edit {
    color: #4299e1;
}

.action-button.edit:hover,
.device-action-btn.edit:hover,
.version-action-btn.edit:hover {
    color: #2b6cb0;
}

.action-button.delete,
.device-action-btn.delete,
.version-action-btn.delete {
    color: #e53e3e;
}

.action-button.delete:hover,
.device-action-btn.delete:hover,
.version-action-btn.delete:hover {
    color: #c53030;
}

.action-button.view,
.device-action-btn.view,
.version-action-btn.view {
    color: #495057;
}

.action-button.view:hover,
.device-action-btn.view:hover,
.version-action-btn.view:hover {
    color: #343a40;
}

/* Modern Add Account Button */
/* Add Button Base Style */
.btn-add-account,
.btn-add-brand,
.btn-add-user,
.btn-add-brewer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #495057;
    border: 1px solid #495057;
    border-radius: 6px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    line-height: 1.5;
}

/* Add Button Hover State */
.btn-add-account:hover,
.btn-add-brand:hover,
.btn-add-user:hover,
.btn-add-brewer:hover {
    background: #343a40;
    border-color: #343a40;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Add Button Active State */
.btn-add-account:active,
.btn-add-brand:active,
.btn-add-user:active,
.btn-add-brewer:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Add Button Focus State */
.btn-add-account:focus,
.btn-add-brand:focus,
.btn-add-user:focus,
.btn-add-brewer:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(73, 80, 87, 0.25);
}

/* Add Button Icon */
.btn-add-account i,
.btn-add-brand i,
.btn-add-user i,
.btn-add-brewer i {
    font-size: 0.875rem;
    margin-right: 0.125rem;
}

/* Table footer - Merged with base .table-footer and .table-pagination */

/* View Page Styles */

/* Info Section */
.info-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.info-section-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8f9fa;
}

.info-section-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section-header i {
    color: #5b73e8;
    font-size: 1rem;
}

.info-section-body {
    padding: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
}

.info-value.empty {
    color: #9ca3af;
    font-style: italic;
}

/* Page Actions */
.page-actions {
    display: flex;
    gap: 0.75rem;
}

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

.locations-table thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e9ecef;
    text-align: left;
}

.locations-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #374151;
}

.locations-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
}

.empty-state p {
    margin: 0;
    font-size: 0.875rem;
}

/* DataTables Styles */
/* Last row in table body */
.table tbody tr:last-child td,
.modern-table tbody tr:last-child td,
.software-table tbody tr:last-child td {
    border-bottom: none;
}



/* DataTables Sorting Icons */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background: #f8f9fa !important;
    color: #495057 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    padding: 0.6rem 1rem !important;
    border-bottom: 2px solid #e9ecef !important;
    vertical-align: middle !important;
    height: 45px !important;
    line-height: 1.2 !important;
    position: relative !important;
}

table.dataTable thead .sorting:after {
    content: '\f0dc' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.5 !important;
    font-size: 0.75rem !important;
}

table.dataTable thead .sorting_asc:after {
    content: '\f0de' !important;
    opacity: 1 !important;
    color: #5b73e8 !important;
}

table.dataTable thead .sorting_desc:after {
    content: '\f0dd' !important;
    opacity: 1 !important;
    color: #5b73e8 !important;
}

/* Fix sorted column background */
table.dataTable tbody tr td.sorting_1,
table.dataTable tbody tr td.sorting_2,
table.dataTable tbody tr td.sorting_3 {
    background: transparent !important;
}

/* Ensure hover effects work properly */
table.dataTable tbody tr:hover td.sorting_1,
table.dataTable tbody tr:hover td.sorting_2,
table.dataTable tbody tr:hover td.sorting_3 {
    background-color: #f8f9fa !important;
}

/* Validation Styles - Merged with base validation styles */

/* Brand-specific Styles */
/* Brand Logo */
.brand-logo {
    width: auto;
    height: 25px;
    border-radius: 4px;
    object-fit: contain;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.brand-logo:hover {
    transform: scale(1.1);
}

/* Table Link Styles */
.hover-primary {
    transition: color 0.2s ease-in-out;
    text-decoration: none;
}

.hover-primary:hover {
    color: #3498db !important;
    text-decoration: none;
}

/* Custom sorting indicators */
.table thead th.sorting:before,
.table thead th.sorting_asc:before,
.table thead th.sorting_desc:before,
.table thead th.sorting:after,
.table thead th.sorting_asc:after,
.table thead th.sorting_desc:after {
    display: none;
}

.table thead th.sorting,
.table thead th.sorting_asc,
.table thead th.sorting_desc {
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
}

.table thead th.sorting:after {
    content: "\f0dc";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.75rem;
}

.table thead th.sorting_asc:after {
    content: "\f0de";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #495057;
    font-size: 0.75rem;
}

.table thead th.sorting_desc:after {
    content: "\f0dd";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #495057;
    font-size: 0.75rem;
}

/* Brand View Styles */
.brand-details {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    margin: 1.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.brand-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.brand-logo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.brand-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand-title {
    flex: 1;
}

.brand-title h2 {
    color: #1a1a1a;
    font-size: 1.875rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.brand-subtitle {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.025em;
}

/* Empty State */
.empty-logo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
}

.empty-logo i {
    font-size: 2.5rem;
    color: #9ca3af;
}

/* Modal Styles */
.logo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(17, 24, 39, 0.75);
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.logo-modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background-color: #fff;
}

.close-modal {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.5rem;
    z-index: 1001;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition: all 0.15s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.close-modal i {
    font-size: 1rem;
    line-height: 1;
}

/* Additional Info Value Styles */
.info-value.large {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.025em;
}

.info-value.highlight {
    color: #495057;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
}

/* User-specific Styles */
/* Toggle Switch Styles */
.gap-4 {
    gap: 1.5rem !important;
}

/* Default Toggle Switch */
.default-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Switch Container */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    margin: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Switch Slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: all 0.2s ease-in-out;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.2s ease-in-out;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Switch States */
input:checked + .slider {
    background-color: #4299e1;
}

input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Toggle Label */
.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #718096;
    transition: color 0.2s ease-in-out;
}

input:checked ~ .toggle-label {
    color: #4299e1;
}

/* Disabled State */
input:disabled ~ .slider {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e2e8f0;
}

input:disabled ~ .toggle-label {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toggle Group */
.toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

/* Location Actions */
.location-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.location-toggle-btn {
    min-width: 85px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.location-toggle-btn i {
    font-size: 0.75rem;
}

.location-toggle-btn.btn-primary {
    background-color: #4299e1;
    border-color: #4299e1;
}

.location-toggle-btn.btn-primary:hover {
    background-color: #3182ce;
    border-color: #3182ce;
}

.location-toggle-btn.btn-danger {
    background-color: #e53e3e;
    border-color: #e53e3e;
}

.location-toggle-btn.btn-danger:hover {
    background-color: #c53030;
    border-color: #c53030;
}

/* Choices Select Styles */
.choices[data-type*=select-multiple] .choices__inner,
.choices[data-type*=text] .choices__inner {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e1e5ef;
    background-color: #fff;
    min-height: 42px;
}

.choices__list--multiple .choices__item {
    background-color: #5b73e8;
    border: 1px solid #4a61d1;
    border-radius: 4px;
    color: #fff;
    margin: 2px;
    padding: 2px 8px;
}

.choices[data-type*=select-multiple] .choices__button {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 8px;
    padding-left: 8px;
}

.choices__inner {
    background-color: #fff;
    border: 1px solid #e1e5ef;
    border-radius: 8px;
    min-height: 42px;
    padding: 0.5rem;
}

.choices__list--dropdown {
    border: 1px solid #e1e5ef;
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.choices__list--dropdown .choices__item {
    padding: 0.5rem 1rem;
}

.choices__list--dropdown .choices__item--selectable {
    padding-right: 1rem;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #f8fafc;
    color: #2c3e50;
}


.spinner-wrapper {
    padding-top: 6rem;
}

/* Modal Styles */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e4e6ef;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e4e6ef;
    border-bottom-right-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

/* Password Modal */
.password-modal .form-control {
    border-radius: 4px;
    border: 1px solid #e4e6ef;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.password-modal .text-danger {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.password-modal .btn {
    border-radius: 19px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Card Header */
.card-header {
    background: transparent;
    border-bottom: none;
    padding: 1.5rem;
}

.card-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    color: #2c3e50;
}

.card-header h4 i {
    margin-right: 0.75rem;
    color: #5b73e8;
}

.card-header h5 {
    margin: 1rem 0 0;
    display: flex;
    align-items: center;
    color: #495057;
}

/* Brewer-specific Styles */
.brewer-logo {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    background: #fff;
}

.form-group .required {
    color: #dc2626;
    margin-left: 0.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Alert Styles */
.alerts-container {
    display: flex;
    overflow-x: auto;
    padding: 1.125rem;
    gap: 0.625rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f8fafc;
}

.alerts-container::-webkit-scrollbar {
    height: 6px;
}

.alerts-container::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}

.alerts-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 3px;
}

.alert-card {
    flex: 0 0 auto;
    width: calc(25% - 0.625rem);
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.alert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.alert-card .card-body {
    padding: 1rem;
}

.alert-card .card-title {
    color: #2d3748;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alert-card .card-text {
    color: #4a5568;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.alert-card .text-muted {
    color: #718096;
    font-size: 0.75rem;
}

.alert-card-cta {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    text-align: center;
}

.alert-card-cta .card-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.alert-card-cta p {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.alert-card-cta a {
    color: #4299e1;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.alert-card-cta a:hover {
    color: #2b6cb0;
}

.alert-brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
    border: 1px solid #e2e8f0;
}

/* Layout Utilities */
.full-width-column {
    width: 100%;
}

.text-label {
    font-weight: 600;
    text-align: right;
    font-size: 1.125em;
}

.text-label-container {
    float: left;
    width: 16%;
}

.content-spacing {
    padding-top: 6rem;
    padding-left: 6rem;
}

/* Icon Utilities */
.icon-refresh {
    padding: 0.125rem;
}

.icon-refresh-large {
    padding: 0.625rem;
}

/* Status Badges */
/* Badge Base Styles */
.badge,
.status-badge,
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.badge:hover,
.status-badge:hover,
.version-badge:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Badge Icon */
.badge i,
.status-badge i,
.version-badge i {
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
}

/* Badge Variants */
.bg-label-success,
.status-badge.success {
    background-color: rgba(40, 199, 111, 0.1) !important;
    color: #28c76f !important;
    border: 1px solid rgba(40, 199, 111, 0.2);
}

.bg-label-warning,
.status-badge.warning {
    background-color: rgba(255, 159, 67, 0.1) !important;
    color: #ff9f43 !important;
    border: 1px solid rgba(255, 159, 67, 0.2);
}

.bg-label-secondary,
.status-badge.secondary {
    background-color: rgba(119, 117, 117, 0.1) !important;
    color: #777575 !important;
    border: 1px solid rgba(119, 117, 117, 0.2);
}

.bg-label-danger,
.status-badge.danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.bg-label-info,
.status-badge.info {
    background-color: rgba(14, 165, 233, 0.1) !important;
    color: #0ea5e9 !important;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Device Status Indicators */
.device-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.device-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.device-status-dot.active {
    background-color: #28c76f;
}

.device-status-dot.inactive {
    background-color: #777575;
}

.device-status-dot.warning {
    background-color: #ff9f43;
}

.device-status-dot.error {
    background-color: #ef4444;
}

/* Device Card */
.device-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.2s ease-in-out;
}

.device-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.device-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.device-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.device-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.device-card-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.device-card-stat-label {
    font-size: 0.75rem;
    color: #718096;
}

.device-card-stat-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2d3748;
}

/* Info Card Styles */
/* Info Card Base */
.info-card {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
}

/* Info Card Label */
.info-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info Card Value - Merged with base .info-value */

.info-value:last-child {
    margin-bottom: 0;
}

.info-value a {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-value a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

/* Info Value Variants */
.info-value.empty {
    color: #9ca3af;
    font-style: italic;
}

.info-value.large {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.025em;
}

.info-value.highlight {
    color: #495057;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
}

/* Section Header - Merged with base .info-section-header */

.section-header i,
.info-section-header i {
    font-size: 1rem;
    opacity: 0.9;
    color: #5b73e8;
}

/* Section Header Light Variant */
.section-header.light,
.info-section-header.light {
    background: #f8f9fa;
    color: #2c3e50;
    border-bottom: 1px solid #e2e8f0;
}

.section-header.light i,
.info-section-header.light i {
    color: #5b73e8;
    opacity: 1;
}

/* No Data State */
.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px dashed #dee2e6;
}

/* Action Links */
.action-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-link {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s ease;
}

.action-link:hover {
    color: #2d3748;
}

.action-link.delete {
    color: #e53e3e;
}

.action-link.delete:hover {
    color: #c53030;
}

/* Device Status Styles */
.device-status-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.device-status-item {
    text-align: center;
    padding: 1rem;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.device-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.device-status-label {
    font-weight: 600;
    color: #2d3748;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Device Timeline */
.device-timeline {
    border-left: 3px solid #4a5568;
    padding-left: 1.25rem;
    margin-left: 0.625rem;
}

.timeline-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #4a5568;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #4a5568;
}

.timeline-item.active::before {
    background: #48bb78;
    box-shadow: 0 0 0 3px #48bb78;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.875rem;
    margin: 0;
}

.timeline-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

.timeline-content {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.5;
}

.timeline-meta {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #718096;
}

/* Progress Indicators */
.progress-battery {
    width: 100px;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-battery .progress-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-bar-success {
    background-color: #48bb78;
}

.progress-bar-warning {
    background-color: #ed8936;
}

.progress-bar-danger {
    background-color: #e53e3e;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.quick-action-btn i {
    font-size: 1rem;
}

/* Software Version Styles */
.software-card {
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,.08);
    border-radius: 0.75rem;
    background: #fff;
}

.software-card-body {
    padding: 2.5rem;
}

.software-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.software-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.software-subtitle {
    font-size: 1rem;
    color: #718096;
    margin: 0;
}



/* Version Status */
/* Version Actions */
.version-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* Software Upload */
.upload-zone {
    border: 2px dashed #e2e8f0;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.upload-zone:hover {
    border-color: #4299e1;
    background: #ebf8ff;
}

.upload-zone.drag-over {
    border-color: #4299e1;
    background: #ebf8ff;
}

.upload-icon {
    font-size: 3rem;
    color: #a0aec0;
    margin-bottom: 1rem;
}

.upload-text {
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: #718096;
    font-size: 0.875rem;
}

/* Upload Progress */
.upload-progress {
    margin-top: 1rem;
}

.progress-bar {
    height: 0.5rem;
    border-radius: 9999px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #4299e1;
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4a5568;
}

/* Empty State */
.empty-state {
    padding: 3rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    color: #a0aec0;
    margin-bottom: 1.5rem;
}

.empty-state-text {
    color: #718096;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Select2 Custom Styles - Merged with base Select2 styles */

/* Line Management Styles */
.line-management-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.line-section-title {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.line-section-title i {
    color: #5b73e8;
    font-size: 1rem;
}

/* Line Form Controls */
.line-form-group {
    margin-bottom: 1rem;
}

.line-form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.line-form-control {
    height: 38px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #e4e6ef;
    border-radius: 20px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.line-form-control:focus {
    border-color: #5b73e8;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(91, 115, 232, 0.25);
}

.line-form-control:disabled {
    background-color: #f8f9fa;
    opacity: 1;
}

/* Line Form Validation */
.line-error-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Line Form Actions */
.line-form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Device Actions */
.device-actions {
    display: flex;
    gap: 0.5rem;
}

/* Additional Responsive Design */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .page-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-section-body {
        padding: 1rem;
    }

    .table-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .table-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .brand-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .brand-logo,
    .empty-logo {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .brand-title h2 {
        font-size: 1.5rem;
    }

    .alert-card {
        width: calc(100% - 0.625rem);
    }

    .text-label-container {
        float: none;
        width: 100%;
        text-align: left;
        margin-bottom: 1rem;
    }

    .content-spacing {
        padding: 2rem 1rem;
    }

    
}
