/* styles.css */

body {
    font-family: "Mulish", sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    color: #333;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px; /* Bo viền mềm mại hơn */
    font-size: 16px;
    font-weight: bold;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Hiệu ứng đổ bóng */
}

.alert.show {
    opacity: 1;
    transform: translateY(0);
}

.alert.hide {
    opacity: 0;
    transform: translateY(-10px);
}

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

.alert.warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}

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

.alert.info {
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
}

.alert:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Đổ bóng mạnh hơn khi hover */
    transform: translateY(-5px); /* Nâng lên một chút khi hover */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .navbar-brand {
    font-size: 28px;
    color: #1da1f2;
    text-decoration: none;
    font-weight: bold;
}

.navbar .navbar-nav a {
    margin-left: 20px;
    color: #1da1f2;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.navbar .navbar-nav a:hover {
    color: #0d8ae3;
    text-decoration: none;
}

.container {
    max-width: 700px;
    margin: 30px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2, h3 {
    color: #14171a;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
    vertical-align: middle;
}

table th {
    background-color: #f5f8fa;
    color: #657786;
    font-size: 14px;
    width: 200px; /* Fixed width for item names */
}

table td {
    background-color: #ffffff;
    color: #333;
    font-size: 14px;
}

table tr {
    transition: background-color 0.3s ease;
}

table tr:hover {
    background-color: #eaf5ff;
}

.item-details {
    display: flex;
    align-items: center;
}

.item-details img {
    margin-right: 10px;
}

.item-details .details {
    display: flex;
    flex-direction: column;
}

.radio-container {
    display: inline-block;
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 15px;
    width: 15px;
    background-color: #eee;
    border-radius: 50%;
}

.radio-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.radio-container input:checked ~ .checkmark {
    background-color: #1da1f2;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-container input:checked ~ .checkmark:after {
    display: block;
}

.radio-container .checkmark:after {
    top: 5px;
    left: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: white;
}

button, .btn {
    display: inline-block;
    padding: 5px 15px;
    margin: 5px 0;
    width: auto;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover, .btn:hover {
    transform: scale(1.05);
}

.btn-success {
    background-color: #1da1f2;
}

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

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

.btn-primary {
    background-color: #1da1f2;
}

.btn-secondary {
    background-color: #657786;
}

form .form-group {
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-bottom: 8px;
    color: #657786;
    font-size: 14px;
}

form input, form select, form textarea {
    width: 90%;
    padding: 12px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background-color: #f5f8fa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: #1da1f2;
    box-shadow: 0 0 5px rgba(29, 161, 242, 0.3);
}

form input:hover, form select:hover, form textarea:hover {
    border-color: #1da1f2;
}

form input::placeholder, form textarea::placeholder {
    color: #aab8c2;
}

form .logo-options {
    display: flex;
    flex-wrap: wrap;
}

form .logo-options label {
    display: flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 10px;
}

form .logo-options img {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
}

.table-actions .btn {
    flex: 1 1 48%; /* Adjust button width and spacing */
    margin: 1px;
    max-width: 10px;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    table th, table td {
        padding: 8px;
    }

    button, .btn {
        padding: 10px;
    }

    .navbar .navbar-brand {
        font-size: 24px;
    }

    .navbar .navbar-nav a {
        font-size: 16px;
    }
}
