/* G:/My Drive/00Programming/test_ai/line_noify_gemini/assets/css/style.css */
/* Custom styles for the project */

.navbar-gradient {
    background: linear-gradient(to right, #012c5e, #1159a0) !important; /* ไล่เฉดสีน้ำเงินสำหรับ Navbar */
}

body {
    font-family: 'Kanit', sans-serif; /* ใช้ฟอนต์ไทยที่สวยงาม */
    background-color: #f0f2f5;
}

.gradient-card {
    background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.navbar-brand {
    font-weight: 600;
}

.footer {
    padding: 1rem 0;
    background-color: #343a40;
    color: white;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Mobile-like menu */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1050; /* ให้อยู่เหนือ navbar */
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, #012c5e, #1159a0); /* ไล่เฉดสีน้ำเงินเข้มขึ้นสำหรับ Sidebar */
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 20px;
    color: #ffffff; /* เปลี่ยนเป็นสีขาว */
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #e0e0e0; /* สีขาวสว่างขึ้นเมื่อ hover */
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

#main-content {
    transition: margin-left .5s;
    padding: 16px;
}

.open-btn {
    font-size: 20px;
    cursor: pointer;
    background-color: transparent;
    color: white;
    padding: 10px 15px;
    border: none;
}

/* Responsive adjustments for tasks_list and users_list */
.card-list-view {
    display: none; /* Hidden by default on larger screens */
}

@media (max-width: 768px) {
    .table-responsive {
        display: none; /* Hide the table on small screens */
    }
    .card-list-view {
        display: block; /* Show the card view on small screens */
    }
    
    /* Task card styles */
    .task-card {
        margin-bottom: 1rem;
        border: 1px solid #e0e0e0;
        border-radius: 0.5rem;
        overflow: hidden;
    }
    .task-card-header {
        background-color: #f8f9fa;
        padding: 0.75rem 1.25rem;
        border-bottom: 1px solid #e0e0e0;
        font-weight: bold;
    }
    .task-card-body {
        padding: 1.25rem;
    }
    .task-card-footer {
        background-color: #f8f9fa;
        padding: 0.75rem 1.25rem;
        border-top: 1px solid #e0e0e0;
        text-align: right;
    }
    .task-card-item {
        display: flex;
        justify-content: space-between;
        padding: 0.25rem 0;
        border-bottom: 1px dashed #e9ecef;
    }
    .task-card-item:last-child {
        border-bottom: none;
    }
    .task-card-item strong {
        flex-basis: 40%;
    }
    .task-card-item span {
        display: block; /* ทำให้เป็น block element */
        text-align: right; /* จัดตำแหน่งข้อความไปทางขวา */
    }
    .task-card-item span .badge {
        display: inline-block; /* ใช้ inline-block เพื่อให้ปรับขนาดตามเนื้อหา */
        width: fit-content; /* ตั้งค่า width เป็น fit-content */
        white-space: nowrap;
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        box-sizing: border-box;
        margin-left: auto; /* จัดชิดขวาภายใน block parent */
    }
    
    /* User card styles */
    .user-card {
        margin-bottom: 1rem;
        border: 1px solid #e0e0e0;
        border-radius: 0.5rem;
        overflow: hidden;
        background-color: white;
    }
    .user-card-header {
        background-color: #f8f9fa;
        padding: 0.75rem 1.25rem;
        border-bottom: 1px solid #e0e0e0;
        font-weight: bold;
        color: #495057;
    }
    .user-card-body {
        padding: 1.25rem;
    }
    .user-card-footer {
        background-color: #f8f9fa;
        padding: 0.75rem 1.25rem;
        border-top: 1px solid #e0e0e0;
        text-align: right;
    }
    .user-card-item {
        display: flex;
        justify-content: space-between;
        padding: 0.25rem 0;
        border-bottom: 1px dashed #e9ecef;
    }
    .user-card-item:last-child {
        border-bottom: none;
    }
    .user-card-item strong {
        flex-basis: 40%;
        color: #495057;
    }
    .user-card-item span {
        display: block;
        text-align: right;
    }
    .user-card-item span .badge {
        display: inline-block;
        width: fit-content;
        white-space: nowrap;
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        box-sizing: border-box;
        margin-left: auto;
    }
}
