﻿.table-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow-x: auto; /* Ensures horizontal scroll on small screens */
}

div.table-container > .table-beautified {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    border: 0 !important; /* Forcefully removes the border attribute */
}

    /* Styles for the table cells and headers */
    div.table-container > .table-beautified th,
    div.table-container > .table-beautified td {
        padding: 15px;
        text-align: left;
        vertical-align: middle;
        border: none !important;
    }

/* Styles for the first row (the header) inside tbody */
.table-beautified tbody tr:first-child {
    background-image: linear-gradient(to right, #3b82f6, #60a5fa);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Override inline color for th elements */
.table-beautified th {
    color: white !important;
}

/* Styles for all other rows (the body) */
.table-beautified tbody tr:not(:first-child) {
    border-bottom: 1px solid #e0e0e0 !important;
    transition: background-color 0.3s ease;
}

    .table-beautified tbody tr:not(:first-child):hover {
        background-color: #f0f8ff;
    }

    .table-beautified tbody tr:not(:first-child):last-child {
        border-bottom: none !important;
    }

/* Styles for the controls inside the GridView */
.btn-table {
    border: 1px solid transparent;
    color: white;
    padding: 6px 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    border-radius: 20px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .btn-table.action {
        background-color: #22c55e;
        border-color: #22c55e;
    }

        .btn-table.action:hover {
            background-color: #1a9c47;
            border-color: #1a9c47;
        }

/* Specific styling for the ASP.NET LinkButtons */
.table-beautified a[id$="BtnEdit"],
.table-beautified a[id$="BtnDelete"],
.table-beautified a[id$="BtnUpdate"],
.table-beautified a[id$="BtnCancel"],
.table-beautified a[id$="LinkButton1"] {
    text-decoration: none;
    color: inherit;
    padding: 5px;
    display: inline-block;
    transition: transform 0.2s ease;
}

    .table-beautified a[id$="BtnEdit"]:hover,
    .table-beautified a[id$="BtnDelete"]:hover,
    .table-beautified a[id$="BtnUpdate"]:hover,
    .table-beautified a[id$="BtnCancel"]:hover,
    .table-beautified a[id$="LinkButton1"]:hover {
        transform: scale(1.1);
    }

/* Custom style for the checkbox list */
.CListStyle {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .CListStyle input[type="checkbox"] {
        margin-right: 5px;
    }

    .CListStyle td {
        padding: 2px 0;
    }

/* Textbox styling */
.form-control {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 8px;
    transition: border-color 0.3s ease;
}

    .form-control:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }
