/* ════════════════════════════════════════════════════════════════
   iiMirror Theme — http://ftp.iinet.net.au/dir.php clone
   ════════════════════════════════════════════════════════════════ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #555;
  background: #ffffff;
  font-size: 14px;
  line-height: 20px;
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
  min-height: 100vh;
}

a {
  color: #00529b;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

/* Header Container */
#HeaderContainer {
  background: #f68b1f;
  background: linear-gradient(to bottom, #f68b1f 0%, #f28313 100%);
  height: 80px;
  width: 100%;
  border-bottom: 2px solid #d96f07;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#Header {
  width: 980px;
  max-width: 95%;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#HeaderLeft {
  display: flex;
  align-items: center;
  gap: 12px;
}

#HeaderLeft .brand-icon {
  font-size: 32px;
  line-height: 1;
}

#HeaderLeft .brand-text {
  display: flex;
  flex-direction: column;
}

#HeaderLeft h1 {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  margin: 0;
}

#HeaderLeft .brand-sub {
  font-size: 12px;
  color: #ffeed8;
  font-weight: normal;
  margin-top: 2px;
}

#HeaderRight {
  display: flex;
  align-items: center;
  gap: 12px;
}

#HeaderRight a {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.12);
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.15s;
}

#HeaderRight a:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Container */
#Container {
  width: 980px;
  max-width: 95%;
  margin: 24px auto 40px;
  display: flex;
  gap: 20px;
}

/* Left Sidebar */
#ContentLeft {
  width: 230px;
  flex-shrink: 0;
}

.contentLeftTabContainer {
  border: 1px solid #a6a6a6;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}

.contentLeftTab {
  background: #f5f5f5;
  background: linear-gradient(to bottom, #e9e9e9, #ffffff);
  padding: 14px 14px 28px;
}

.contentLeftTab h3 {
  color: #00529b;
  font-size: 15px;
  font-weight: bold;
  border-bottom: 2px solid #c8cce3;
  padding-bottom: 8px;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.contentLeftNav {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.contentLeftNav li {
  padding: 5px 0;
  border-bottom: 1px dotted #e2e2e2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contentLeftNav li:last-child {
  border-bottom: none;
}

.contentLeftNav a {
  color: #444;
  text-decoration: none;
  font-weight: normal;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contentLeftNav a:hover {
  color: #cc0000;
  text-decoration: underline;
}

/* Right Content */
#ContentRight {
  flex: 1;
  min-width: 0;
}

.niceDiv {
  border: 1px solid #a6a6a6;
  border-radius: 7px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.niceDivName {
  background: #f68b1f;
  background: linear-gradient(to bottom, #f68b1f, #f28313);
  color: #ffffff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.niceDivName h2 {
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.niceDivName .path-crumb {
  font-size: 13px;
  color: #ffeed8;
  font-weight: normal;
}

/* Directory Table */
.niceTable {
  width: 100%;
  border-collapse: collapse;
}

.niceTable thead tr {
  background: #f7f7f7;
}

.niceTable th {
  padding: 8px 12px;
  font-size: 12px;
  color: #333333;
  font-weight: bold;
  border-bottom: 1px solid #c0c0c0;
  text-align: left;
}

.niceTable th.text-center { text-align: center; }
.niceTable th.text-right  { text-align: right; }

.niceTable td {
  padding: 9px 12px;
  font-size: 13px;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: middle;
}

.niceTable tr:last-child td {
  border-bottom: none;
}

.niceTable tbody tr:hover td {
  background-color: #fff9f2;
}

/* Directory Item Name */
.dir-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.folder-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.dir-entry-text {
  display: flex;
  flex-direction: column;
}

.dir-link {
  color: #CC0000 !important;
  font-weight: bold !important;
  font-size: 14px;
  text-decoration: underline;
}

.dir-link:hover {
  text-decoration: none !important;
}

.dir-desc {
  font-size: 11px;
  color: #777;
  margin-top: 2px;
  line-height: 1.3;
}

/* Protocol Links */
.proto-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.proto-btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  background: #eef4fb;
  color: #00529b;
  border: 1px solid #d0e0f2;
  text-decoration: none;
  font-family: monospace;
}

.proto-btn:hover {
  background: #00529b;
  color: #ffffff;
  text-decoration: none;
}

.proto-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 3px;
  background: #f4f4f4;
  color: #666;
  border: 1px solid #ddd;
  font-family: monospace;
}

/* Size and Date */
.dir-size {
  text-align: right;
  color: #555;
  font-size: 12px;
  font-family: monospace;
  white-space: nowrap;
}

.dir-date {
  text-align: right;
  color: #666;
  font-size: 12px;
  white-space: nowrap;
}

/* Footer */
#Footer {
  width: 980px;
  max-width: 95%;
  margin: 30px auto 20px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}

#Footer a {
  color: #666;
}

#Footer a:hover {
  color: #00529b;
}

@media (max-width: 768px) {
  #Container {
    flex-direction: column;
  }
  #ContentLeft {
    width: 100%;
  }
}
