/* 通用樣式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 導覽列樣式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #343a40;
    padding: 15px 20px;
    color: white;
    font-size: 16px;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo a {
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
}

.navbar .logo span {
    color: #ced4da;
}

.navbar .nav-links {
    display: flex;
    gap: 20px;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #adb5bd;
}

/* 按鈕樣式 */
.btn {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-warning {
    background-color: #ffc107;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
}

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

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* 表格樣式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.data-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table tr:hover {
    background-color: #f1f1f1;
}

/* 訊息樣式 */
.alert-message {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-info {
    color: #007bff;
    text-align: center;
    font-style: italic;
}

/* 公司列表頁面特定樣式 */
.company-section {
    margin-top: 30px;
}

.company-section h2 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.company-list-container h1 {
    margin-bottom: 10px;
}

.company-list-container > .btn-primary {
    margin-bottom: 20px;
}

/* 新增表單樣式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* 確保 padding 不會影響寬度 */
    font-size: 16px;
}

/* 儀表板資訊區塊樣式 */
.dashboard-info {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex; /* 使用 Flexbox 確保內容在同一行 */
    justify-content: flex-start; /* 內容靠左對齊 */
    align-items: center;
    flex-wrap: wrap; /* 在螢幕較小時換行 */
}

.dashboard-info p {
    margin: 0;
    line-height: 1.5;
}

.dashboard-info p strong {
    color: #495057;
    margin-right: 5px;
}

.info-separator {
    margin: 0 15px; /* 設定分隔線左右間距 */
    color: #ced4da; /* 分隔線顏色 */
}

/* 客戶預訂單區塊樣式 */
.customer-orders-section {
    margin-top: 30px;
}

.customer-orders-section h2 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-bottom: 15px;
}
/* 廠商管理頁面專屬的樣式 */
.header-actions {
    margin-bottom: 20px;
    text-align: right;
}

#supplier-list-container {
    margin-top: 30px;
}
/* 客戶管理頁面專屬的樣式 */
.header-actions {
    margin-bottom: 20px;
    text-align: right;
}

#customer-list-container {
    margin-top: 30px;
}