/* Mining UI Components - Modern Table Styles */

/* CSS Variables */
:root {
    --cell-padding: 10px 15px;
}

.table-container {
    padding: 10px 20px;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
}

.table-header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
    line-height: var(--line-height);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.table-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: var(--line-height);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    table-layout: fixed;
    color: var(--text-color);
    line-height: var(--line-height);
}

.modern-table thead th {
    background-color: #f5f5f5;
    color: var(--text-color);
    font-weight: 600;
    text-align: left;
    vertical-align: top;
    padding: var(--cell-padding);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: sticky;
    top: 0;
    z-index: 10;
    line-height: var(--line-height);
}

.modern-table td {
    padding: var(--cell-padding);
    border: 1px solid rgba(255, 255, 255, 0.8);
    vertical-align: top;
    text-align: left;
    word-wrap: break-word;
    color: var(--text-color);
    line-height: var(--line-height);
}

.modern-table tr:hover {
    background-color: #f0f8ff;
}

.name-column {
    font-weight: 500;
    color: var(--text-color);
    width: 30%;
    line-height: var(--line-height);
}

.notes-column {
    color: var(--text-color);
    line-height: var(--line-height);
    width: 40%;
}

.category-column {
    text-align: center;
    color: var(--text-color);
    width: 15%;
    line-height: var(--line-height);
}

.date-column {
    text-align: center;
    color: var(--text-color);
    font-weight: 500;
    width: 15%;
    line-height: var(--line-height);
}

a {
    color: var(--text-color);
    text-decoration: underline;
    line-height: var(--line-height);
}

a:hover {
    color: #dc143c;
    text-decoration: underline;
}

a:visited {
    color: #6c757d;
    text-decoration: underline;
}

/* Footer Styles */
.footer {
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: silver;
    line-height: 1.2em;
    width: 100%;
}

.footer p {
    margin: 5px 0;
    color: #808080;
    line-height: var(--line-height);
    font-size: 10px;
    max-width: 100%;
}

.footer a {
    color: var(--text-color);
    line-height: var(--line-height);
}

.component-links {
    text-align: left;
    list-style-type: disc;
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-color);
    line-height: var(--line-height);
}

.component-links li {
    margin-bottom: 8px;
}

.component-links a {
    color: var(--text-color);
    text-decoration: underline;
}

.component-links a:hover {
    text-decoration: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .table-container {
        padding: 5px;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .modern-table {
        font-size: 13px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .table-header {
        margin-bottom: 20px;
    }
    
    .table-title {
        font-size: 24px;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: left;
        vertical-align: top;
    }
    
    .date-column {
        white-space: nowrap;
    }
}

p {
    max-width: 650px;
}
.max-width-for-text {
    max-width: 650px;
    margin: 0 auto;
}