/*
 * CSS for styling Apache's mod_autoindex directory listing
 * To use, add the following to your .htaccess file:
 * IndexStyleSheet "/path/to/this/file/style.css"
 */

:root {
    --primary-light: #d5d6da;
    --primary-dark: #08060a;
    --accent-color: #00BFFF;
}

body {
    font-family: 'Nova Flat', sans-serif;
    background-color: var(--primary-dark);
    color: var(--primary-light);
    padding: 2rem;
}

/* Hide the default horizontal rules */
hr {
    display: none;
}

/* Style the main heading */
h1 {
    color: var(--accent-color);
    font-size: 2.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
}

/* Style the table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: rgba(8, 6, 10, 0.85);
    border: 2px solid var(--primary-light);
    border-radius: 15px;
    overflow: hidden;
}

/* Style table headers */
thead tr {
    background-color: var(--primary-dark);
    color: var(--accent-color);
    text-align: left;
}

th, td {
    padding: 12px 15px;
}

/* Style table rows */
tbody tr {
    border-bottom: 1px solid rgba(213, 214, 218, 0.1);
}

tbody tr:last-of-type {
    border-bottom: none;
}

tbody tr:hover {
    background-color: rgba(0, 191, 255, 0.1);
}

/* Style the links */
a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Style the file/folder icons */
td img {
    margin-right: 10px;
    vertical-align: middle;
}

/* Hide unnecessary columns if they exist */
table th:nth-child(4), table td:nth-child(4) { /* Size column */
    text-align: right;
}
table th:nth-child(3), table td:nth-child(3) { /* Last Modified column */
     display: none; /* Optional: hide last modified */
}


/* Style the footer address line from Apache */
address {
    margin-top: 2rem;
    font-style: normal;
    font-size: 0.9rem;
    color: rgba(213, 214, 218, 0.5);
    text-align: center;
}
