﻿:root {
    --primary: #1e88e5;
    --primary-dark: #0d47a1;
    --secondary: #ff8f00;
    --success: #43a047;
    --warning: #ffb300;
    --danger: #e53935;
    --info: #039be5;
    --light: #f5f5f5;
    --dark: #212121;
}

.tank-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .tank-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

.positions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.position {
    aspect-ratio: 1;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .position:hover {
        transform: scale(1.05);
    }

    .position.available {
        background-color: #e8f5e9;
        color: var(--success);
        border-color: #c8e6c9;
    }

    .position.occupied {
        background-color: #ffebee;
        color: var(--danger);
        border-color: #ffcdd2;
        cursor: not-allowed;
    }

    .position.selected {
        background-color: #fff8e1;
        color: var(--warning);
        border-color: #ffecb3;
        box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
    }

    .position.maintenance {
        background-color: #e0e0e0;
        color: #616161;
        border-color: #bdbdbd;
        cursor: not-allowed;
    }

.booking-summary {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #90caf9;
}

.summary-label {
    font-weight: 600;
    color: #616161;
}

.summary-value {
    font-weight: 600;
    color: var(--primary-dark);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-display {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.status-indicator {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.status-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

    .status-color.available {
        background-color: #e8f5e9;
        border: 1px solid #c8e6c9;
    }

    .status-color.selected {
        background-color: #fff8e1;
        border: 1px solid #ffecb3;
    }

    .status-color.occupied {
        background-color: #ffebee;
        border: 1px solid #ffcdd2;
    }

/* Start Modal Dialog CSS */
div.modal-background {
    position: fixed;
    justify-content: center;
    align-items: start;
    z-index: 10; /* Sit on top */
    left: 0;
    top: 0;
    padding-top: 100px;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

div.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 10px;
    border: 2px solid #888;
    width: 60%;
}

/* End Modal Dialog CSS */

/* 用户管理样式 */
.required::after {
    content: " *";
    color: #dc3545;
}

.table th {
    border-top: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: #6c757d;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.badge {
    font-size: 0.75em;
}

/* 模态框动画 */
.modal.fade.show {
    animation: fadeIn 0.15s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 表格行悬停效果 */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.075);
}

/* 分页样式 */
.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* 统计卡片样式 */
.card.bg-primary {
    background: linear-gradient(45deg, #4e73df, #224abe) !important;
}

.card.bg-success {
    background: linear-gradient(45deg, #1cc88a, #13855c) !important;
}

.card.bg-warning {
    background: linear-gradient(45deg, #f6c23e, #dda20a) !important;
}

.card.bg-info {
    background: linear-gradient(45deg, #36b9cc, #258391) !important;
}

/* 响应式表格 */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}
/* END 用户管理样式 */
/* start公司选择*/
.avatar-sm {
    width: 2.5rem;
    height: 2.5rem;
}

.avatar-lg {
    width: 4rem;
    height: 4rem;
}

.avatar-xl {
    width: 5rem;
    height: 5rem;
}

.badge {
    font-size: 0.75em;
}
/* end公司选择*/

.logout-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.logout-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.logout-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.logout-loading,
.logout-success,
.logout-error,
.logout-info {
    padding: 1rem;
}

.success-icon,
.error-icon,
.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-icon {
    color: #28a745;
}

.error-icon {
    color: #dc3545;
}

.info-icon {
    color: #17a2b8;
}

.logout-actions {
    margin-top: 1.5rem;
}

.logout-actions .btn {
    margin: 0 0.5rem;
}

