﻿:root {
    --gold: #eacb64; /* soft, bright gold */
    --gold-accent: #f6e8b1; /* lighter gold highlight */
    --text-dark: #333;
    --row-alt: #fcfaf5; /* gentle off-white with gold tint */
    --border-color: #efe2b2;
}

.responsive-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 16px;
    font-family: "Segoe UI", Roboto, sans-serif;
    min-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
}

.responsive-table thead {
    background: linear-gradient(135deg, var(--gold), #c19b2e);
    color: #fff;
    text-align: left;
    font-weight: 600;
}

.responsive-table th,
.responsive-table td {
    padding: 12px 15px;
    color: var(--text-dark);
}

.responsive-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.responsive-table tbody tr:nth-of-type(even) {
    background-color: var(--row-alt);
}

.responsive-table tbody tr:last-of-type {
    border-bottom: 3px solid var(--gold);
}

.responsive-table tbody tr:hover {
    background-color: var(--gold-accent);
    transform: scale(1.01);
}

/* Responsive design */
@media (max-width: 768px) {
    .responsive-table thead {
        display: none;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
    }

    .responsive-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 50%;
        padding-left: 15px;
        font-weight: 600;
        text-align: left;
        color: var(--gold);
    }
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1em auto;
    max-width: 1200px;
    padding: 0 1em;
}

.add-material-link {
    padding: 8px 15px;
    background-color: var(--gold);
    color: #333;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.add-material-link:hover {
    background-color: #c19b2e;
    color: #fff;
}

/* Actions button inside table */
.action-btn {
    padding: 4px 10px;
    border-radius: 6px;
    background-color: #f6e8b1;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.action-btn:hover {
    background-color: var(--gold);
    color: #fff;
}

