/* General Reset */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #fffaf4;
    color: #3b2f2f;
}

/* Header/Nav */
header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #fff;
    padding: 12px 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    /* position: sticky;
    top: 0;
    z-index: 999; */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
    object-fit: contain;
}

.main-nav a {
    margin: 0 12px;
    text-decoration: none;
    color: #3b2f2f;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #d4b17a;
}

/* Container */
.container {
    padding: 24px;
    max-width: 1000px;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(212, 177, 122, 0.1);
    border-radius: 12px;
    border: 1px solid #f0e6da;
}

.notification {
    position: sticky;
    top: 0;
    z-index: 999;
    right: 20px;
    background-color: #fefefe;
    color: #3b2f2f;
    border-left: 6px solid #d4b17a;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-size: 14px;
    max-width: 300px;
    transition: all 0.3s ease;
}

.notification.success {
    border-left-color: #4caf50;
    background-color: #e6f9ea;
}

.notification.error {
    border-left-color: #f44336;
    background-color: #ffeaea;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(212, 177, 122, 0.2);
}

th,
td {
    border: 1px solid #f0e6da;
    padding: 12px 8px;
    text-align: left;
    font-size: 15px;
}

th {
    background-color: #d4b17a;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

tr:nth-child(even) {
    background-color: #fffaf4;
}

tr:hover {
    background-color: #fdf2e7;
    transition: background-color 0.3s ease;
}
.delete-btn,.update-btn {
    background-color: #e57373;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.update-btn {
    background-color: #73e573;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

.update-btn:hover {
    background-color: #42d32f;
}

/* Dotted Loader */
.loader-dots {
    display: none;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    height: 50px;
}

.loader-dots span {
    width: 10px;
    height: 10px;
    background-color: #d4b17a;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.footer {
    background-color: #3b2f2f;
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1 1 250px;
}

.footer-section h4 {
    margin-bottom: 10px;
    font-size: 18px;
    border-bottom: 1px solid #fff3;
    padding-bottom: 5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
}

.footer-section i {
    margin-right: 8px;
}

.social-icons a {
    color: white;
    font-size: 18px;
    margin-right: 10px;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #fff3;
    padding-top: 10px;
}

@keyframes bounce {
    to {
        opacity: 0.3;
        transform: translateY(-8px);
    }
}

/* Mobile Responsive Table */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 16px;
        border: 1px solid #f0e6da;
        border-radius: 10px;
        padding: 12px;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(212, 177, 122, 0.1);
    }

    td {
        position: relative;
        padding-left: 50%;
        border: none;
        border-bottom: 1px solid #eee;
    }

    td::before {
        position: absolute;
        left: 12px;
        top: 12px;
        width: 45%;
        white-space: nowrap;
        font-weight: bold;
        color: #7a5f3d;
        font-size: 14px;
        content: attr(data-label);
    }

    .main-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

        .footer-content {
            flex-direction: column;
            gap: 20px;
        }
}