/**
 * The default CSS stylesheet used for all templates.
 *
 * @package AutoIndex
 * @author Justin Hagstrom <JustinHagstrom@yahoo.com>
 * @version 1.0.2 (February 05, 2004)
 *
 * @copyright Copyright (C) 2002-2004 Justin Hagstrom
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License (GPL)
 *
 * @link http://autoindex.sourceforge.net
 */

/* Body */
.autoindex_body, html
{
	font-family: "Segoe UI", Arial, sans-serif;
	font-size: 13px;
	background-color: #cce9ff;
}

/* Images */
.autoindex_body img
{
	border: none;
}

/* Tables */
.autoindex_table
{
	width: 100%;
	border: none;
	border-spacing: 0;
	border-collapse: collapse;
}
.light_row
{
	background-color: #edf7ff;
	font-size: 13px;
}
.dark_row
{
	background-color: #d6ecff;
	font-size: 13px;
}
.autoindex_td
{
	font-size: 13px;
	font-family: "Segoe UI", Arial, sans-serif;
	vertical-align: top;
	border: 1px solid #9cc8ee;
	padding: 9px 12px;
	text-align: left;
	white-space: nowrap;
}
.autoindex_td_right
{
	font-size: 13px;
	font-family: "Segoe UI", Arial, sans-serif;
	vertical-align: top;
	border: 1px solid #9cc8ee;
	padding: 9px 12px;
	text-align: right;
	white-space: nowrap;
}
.autoindex_th
{
	font-size: 13px;
	background-color: #1672e8;
	border: 1px solid #1261ca;
	padding: 9px 12px;
}

/* Links */
.plain_link
{
	color: #103f59;
	text-decoration: none;
}
.autoindex_a:link
{
	color: #076a9c;
	text-decoration: none;
}
.autoindex_a:visited, .autoindex_a:active, .autoindex_a:hover
{
	color: #075078;
	text-decoration: none;
}
.light_row:hover, .dark_row:hover
{
	background-color: #b7dbff;
}

/* Buttons */
.button
{
	color: #235774;
	background-color: #edf7ff;
	font-family: sans-serif;
	font-size: 11px;
	text-align: left;
	vertical-align: middle;
	font-weight: bold;
	cursor: pointer;
	border: none;
	padding: 3px 10px 3px 10px;
}

/* Misc. */
.paragraph
{
	background: #edf7ff;
	font-size: 13px;
	color: #163e56;
}
.autoindex_hr
{
	color: #163e56;
	background-color: #163e56;
	border: none;
	width: 75%;
	height: 1px;
}
.autoindex_small
{
	font-size: 10px;
}
/* Directory toolbar and universal search */
.index-toolbar {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 24px;
 margin: 16px 2px 20px;
 padding: 20px 24px;
 background: linear-gradient(120deg, #d9eeff, #a8d5ff);
 border: 1px solid #9cc8ee;
 border-radius: 12px;
 box-shadow: 0 2px 8px rgba(14, 116, 163, .08);
}
.index-path { color: #164e6b; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.index-search { width: 420px; max-width: 100%; margin: 0; flex-shrink: 0; }
.search-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.search-controls { display: flex; gap: 8px; }
.search-controls input {
 box-sizing: border-box;
 min-width: 0;
 width: 100%;
 padding: 12px 14px;
 border: 1px solid #a9d5ed;
 border-radius: 7px;
 background: #edf7ff;
 color: #163e56;
 font: inherit;
}
.search-controls input::placeholder { color: #4c7187; }
.search-controls input:focus { outline: 2px solid #7dd3fc; outline-offset: 2px; border-color: #0284c7; background: #fff; }
.search-controls button {
 padding: 12px 20px;
 border: 1px solid #1261ca;
 border-radius: 7px;
 background: #1672e8;
 color: #fff;
 font: inherit;
 font-weight: 600;
 cursor: pointer;
}
.search-controls button:hover { background: #105dc4; }
.search-controls button:focus-visible { outline: 2px solid #0284c7; outline-offset: 3px; }
@media (max-width: 680px) {
 .index-toolbar { flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; }
 .index-search { width: 100%; }
}

.autoindex_body { color: #163e56; margin: 16px; }
.autoindex_small { color: #38647c; line-height: 1.6; }
.autoindex_table + .autoindex_small { padding: 14px 0; }

/* Give the reserved Name column room while keeping sizes compact. */
.directory-table { table-layout: fixed; }
.directory-table .column-file { width: 23%; }
.directory-table .column-size { width: 85px; }
.directory-table td { white-space: normal; overflow-wrap: anywhere; }
.directory-table .autoindex_td_right { white-space: nowrap; }

/* Strong blue accents with clear header contrast. */
.directory-table .autoindex_th, .directory-table .autoindex_th .plain_link { color: #fff; }
.index-toolbar { border-top: 4px solid #1672e8; }

.firmware-link { text-decoration: underline !important; text-underline-offset: 3px; line-height: 1.6; }

/* Improve readability across table cells without changing the toolbar or footer. */
.autoindex_table th, .autoindex_table td { font-weight: 700; }
