@import url('https://fonts.googleapis.com/css?family=Niramit');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300&display=swap');
* { box-sizing: border-box; }
@keyframes bgFadeIn { from { opacity: 0; } to { opacity: 1; } }
html { padding: 0; margin: 0; min-height: 100%; background-color: #000000; color: #ffffff; font-family: 'Niramit', Arial, sans-serif; position: relative; }
body { padding: 0; margin: 0; min-height: 100%; background: transparent; color: #ffffff; font-family: 'Niramit', Arial, sans-serif; position: relative; z-index: 1; }
body::before { content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: url('bg.png'); background-size: cover; background-position: center center; background-repeat: no-repeat; z-index: -1; pointer-events: none; animation: bgFadeIn 5s ease-in forwards; }
.site-wrapper { width: 100%; max-width: 1300px; margin: 0 auto; padding: 15px; background: rgba(0, 0, 0, 0.5); min-height: 100vh; overflow-x: hidden; }
.admin-bar { display: flex; gap: 8px; margin-bottom: 15px; padding: 8px 12px; background: #111111; border: 1px solid #333333; border-radius: 4px; flex-wrap: wrap; justify-content: center; align-items: center; }
.admin-btn { display: inline-block; padding: 6px 14px; background: #222222; color: #ffffff; border: 1px solid #444444; border-radius: 3px; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; transition: background 0.2s, border-color 0.2s; }
.admin-btn:hover { background: #333333; border-color: #666666; color: #ffffff; }
.site-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #333333; padding-bottom: 15px; margin-bottom: 20px; gap: 15px; }
.site-header-logo img { height: 80px; max-width: 100%; object-fit: contain; display: block; }
.site-header-title { font-size: 20px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #ffffff; text-align: right; word-break: break-word; }
.club-reset-container { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; }
.club-links-container { margin: 20px 0; }
.club-reset-row { display: flex; justify-content: space-between; align-items: center; background: #111111; border: 1px solid #282828; border-radius: 4px; padding: 10px 14px; font-size: 14px; color: #dddddd; }
.club-reset-row strong { color: #ffffff; }
.btn-copy { background: #1f1f1f; color: #ffffff; border: 1px solid #444444; border-radius: 3px; padding: 6px 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; cursor: pointer; transition: background 0.2s, border-color 0.2s; white-space: nowrap; }
.btn-copy:hover { background: #333333; border-color: #666666; }
.club-reset-summary { margin-top: 15px; padding: 12px; background: #16241b; border: 1px solid #234830; color: #75db8b; border-radius: 4px; font-weight: 700; font-size: 14px; text-align: center; }
.toast-notify { position: absolute; display: none; background: #ffff00; color: #000000; padding: 6px 12px; font-size: 12px; font-weight: 700; border-radius: 3px; pointer-events: none; z-index: 9999; box-shadow: 0 2px 6px rgba(0,0,0,0.6); }
.welcome-card { background: #111111; border: 1px solid #333333; border-radius: 6px; padding: 25px; margin: 20px auto; text-align: center; max-width: 900px; }
.welcome-text { font-size: 16px; margin-bottom: 20px; color: #dddddd; }
.welcome-form { display: flex; flex-direction: column; gap: 15px; max-width: 400px; margin: 0 auto; }
.form-group { width: 100%; text-align: left; }
.form-group-inline { display: flex; align-items: center; gap: 12px; }
.form-input { width: 100%; padding: 10px 14px; background: #000000; border: 1px solid #444444; border-radius: 4px; color: #ffffff; font-size: 16px; font-family: inherit; }
.form-input:focus { outline: none; border-color: #777777; }
.native-date-box { width: auto; display: inline-flex; max-width: 175px; padding: 8px 10px; background-color: #000000; border: 1px solid #444444; border-radius: 4px; color: #ffffff; font-size: 15px; font-family: inherit; color-scheme: dark; }
.native-date-box:focus { outline: none; border-color: #777777; }
.btn-submit { width: 100%; background: #222222; color: #ffffff; border: 1px solid #555555; border-radius: 4px; padding: 10px 20px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.btn-submit:hover { background: #333333; border-color: #777777; }
.welcome-success { font-size: 16px; color: #75db8b; margin: 0; }
.club-welcome-banner { background: #111111; border: 1px solid #282828; border-radius: 4px; padding: 15px 20px; font-size: 20px; font-weight: 700; text-align: center; color: #ffffff; margin: 20px auto 10px auto; max-width: 900px; }
.club-nav-buttons { display: flex; gap: 12px; justify-content: center; margin: 0 auto 20px auto; max-width: 900px; }
.btn-tab { display: inline-block; padding: 10px 22px; background: #1a1a1a; color: #aaaaaa; border: 1px solid #333333; border-radius: 4px; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-tab:hover { background: #262626; color: #ffffff; border-color: #555555; }
.btn-tab.active { background: #16241b; color: #75db8b; border-color: #234830; }
.doc-upload-container { display: flex; flex-direction: column; gap: 20px; margin: 0 auto 30px auto; max-width: 900px; }
.doc-card { background: #111111; border: 1px solid #333333; border-radius: 6px; overflow: hidden; }
.doc-card-header { background: #1c1c1c; border-bottom: 1px solid #333333; padding: 12px 18px; font-size: 16px; font-weight: 700; letter-spacing: 0.5px; }
.doc-card-body { padding: 18px; display: flex; flex-direction: column; gap: 15px; }
.doc-label { display: inline-block; font-size: 13px; font-weight: 700; color: #aaaaaa; margin-bottom: 0; }
.dropzone { border: 2px dashed #444444; border-radius: 6px; padding: 25px 15px; text-align: center; cursor: pointer; background: #080808; transition: border-color 0.2s, background 0.2s; }
.dropzone:hover, .dropzone.dragover { border-color: #888888; background: #141414; }
.file-input-hidden { display: none; }
.dropzone-icon { font-size: 32px; color: #666666; margin-bottom: 8px; line-height: 1; }
.dropzone-text { font-size: 14px; color: #888888; }
.browse-link { color: #ffffff; text-decoration: underline; }
.file-selected-name { margin-top: 10px; font-size: 13px; color: #75db8b; font-weight: 700; word-break: break-all; }
.submit-group { margin-top: 10px; }
.btn-upload { background: #16241b; border-color: #234830; color: #75db8b; }
.btn-upload:hover { background: #234830; border-color: #356645; color: #ffffff; }
.admin-files-toolbar { margin-bottom: 20px; }
.admin-clubs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; align-items: start; }
.admin-club-card { border: 1px solid #333333; border-radius: 6px; background: #111111; overflow: hidden; display: flex; flex-direction: column; }
.admin-club-card-header { background: #1c1c1c; border-bottom: 1px solid #333333; padding: 14px 18px; font-size: 17px; font-weight: 700; color: #ffffff; letter-spacing: 0.5px; }
.admin-club-card-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.docs-list-container { background: #111111; border: 1px solid #333333; border-radius: 6px; padding: 20px; margin: 0 auto 30px auto; max-width: 900px; }
.docs-empty-state { text-align: center; color: #888888; font-size: 14px; padding: 20px 10px; }
.docs-grid { display: flex; flex-direction: column; gap: 10px; }
.admin-file-row.is-older { display: none; }
.admin-files-wrapper.show-all .admin-file-row.is-older { display: flex; opacity: 0.75; }
.doc-item-row { display: flex; justify-content: space-between; align-items: center; background: #0a0a0a; border: 1px solid #282828; border-radius: 4px; padding: 10px 14px; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.doc-item-row:hover { background: #181818; border-color: #555555; }
.doc-item-info { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.doc-item-badge { background: #222222; color: #75db8b; border: 1px solid #333333; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px; letter-spacing: 0.5px; flex-shrink: 0; }
.doc-item-name { font-size: 13px; color: #dddddd; word-break: break-all; }
.doc-item-dates-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.doc-item-date { font-size: 12px; color: #777777; white-space: nowrap; }
.doc-expiry-warn30 { color: #ff4444; font-weight: 700; }
.doc-expiry-warn60 { color: #f0ad4e; font-weight: 700; }
.doc-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 99999; padding: 20px; }
.doc-modal-content { background: #111111; border: 1px solid #444444; border-radius: 6px; width: 100%; max-width: 900px; height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.doc-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #1c1c1c; border-bottom: 1px solid #333333; }
.doc-modal-title { font-size: 14px; font-weight: 700; color: #ffffff; word-break: break-all; }
.doc-modal-close { background: transparent; border: none; color: #ffffff; font-size: 24px; font-weight: 700; cursor: pointer; line-height: 1; padding: 0 4px; }
.doc-modal-close:hover { color: #ff5555; }
.doc-modal-body { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; background: #000000; padding: 10px; }
.modal-image-preview { max-width: 100%; max-height: 100%; object-fit: contain; }
.modal-doc-frame { width: 100%; height: 100%; border: none; background: #ffffff; }
.perm-error-panel { border: 1px solid #ff0000; border-radius: 5px; overflow: hidden; margin: 20px 0; background: #111111; }
.perm-error-head { font-size: 14px; font-weight: 900; color: #ffff00; background-color: #ff0000; padding: 10px 15px; text-align: center; letter-spacing: 1px; }
.perm-error-body { padding: 20px; color: #dddddd; font-size: 14px; }
.perm-path-display { font-family: monospace; background: #000000; border: 1px solid #333333; padding: 10px 15px; border-radius: 4px; color: #ff5555; margin: 10px 0 15px 0; word-break: break-all; }
.perm-cmd-wrapper { position: relative; margin-top: 15px; }
.btn-copy-cmd { position: absolute; top: 10px; right: 10px; z-index: 10; }
.perm-cmd-box { background: #000000; border: 1px solid #333333; border-radius: 4px; padding: 45px 15px 15px 15px; color: #00ff00; font-family: monospace; font-size: 13px; line-height: 1.5; overflow-x: auto; margin: 0; }
.msg0 { border: 1px solid #000000; border-radius: 5px; overflow: hidden; width: 100%; z-index: 99; }
.msgH0 { font-size: 12px; font-family: arial; color: #ffffff; background-color: #11291d; font-weight: 700; text-align: center; }
.msgB0 { font-size: 11px; font-family: arial; color: #000000; background-color: #ffffff; }
.msg1 { border: 1px solid #ff0000; border-radius: 5px; overflow: hidden; width: 100%; z-index: 99; }
.msgH1 { font-size: 12px; font-family: arial; color: #ffff00; background-color: #ff0000; font-weight: 900; text-align: center; }
.msgB1 { font-size: 10px; font-family: arial; color: #000000; background-color: #ffff00; }
.msg2 { border: 1px solid #ff0000; border-radius: 5px; overflow: hidden; width: 100%; z-index: 99; }
.msgH2 { font-size: 12px; font-family: arial; color: #ff0000; background-color: #ffff00; font-weight: 900; text-align: center; }
.msgB2 { font-size: 10px; font-family: arial; color: #ffff00; background-color: #ff0000; }
.msg3 { border: 0px; width: 100%; z-index: 99; }
.msgH3 { font-size: 12px; font-family: arial; color: #ffffff; background-color: #000000; font-weight: 700; text-align: center; }
.msg4 { border: 1px solid #ff0000; border-radius: 5px; overflow: hidden; width: 100%; }
.msgH4 { font-size: 12px; font-family: arial; color: #ffff00; background: #ff0000; font-weight: 900; text-align: center; }
.msgB4 { font-size: 10px; font-family: arial; color: #000000; background: #ffff00; }
.site-footer { margin-top: 30px; padding: 20px 0; border-top: 1px solid #222222; text-align: center; font-size: 12px; color: #888888; }
@media (max-width: 900px) { .admin-clubs-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .site-header { flex-direction: column; text-align: center; } .site-header-title { text-align: center; font-size: 16px; } .site-wrapper { padding: 10px; } .admin-bar { justify-content: center; } .club-reset-row { flex-direction: column; align-items: flex-start; gap: 8px; } .btn-copy { width: 100%; text-align: center; } .btn-copy-cmd { position: static; width: 100%; margin-bottom: 10px; } .perm-cmd-box { padding: 15px; } .form-group-inline { flex-direction: column; align-items: flex-start; gap: 6px; } .native-date-box { width: 100%; max-width: 100%; } .club-nav-buttons { flex-direction: column; } .btn-tab { text-align: center; } .doc-item-row { flex-direction: column; align-items: flex-start; gap: 8px; } .doc-item-dates-col { align-items: flex-start; } .doc-item-date { margin-left: 0; } }

.doc-instructions-card { background: #0c0f0d; border: 1px solid #234830; border-left: 4px solid #75db8b; border-radius: 6px; padding: 20px 24px; margin-top: 25px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
.doc-instructions-title { font-size: 14px; font-weight: 700; color: #75db8b; margin-bottom: 14px; letter-spacing: 0.8px; text-transform: uppercase; border-bottom: 1px solid #1a3322; padding-bottom: 8px; }
.doc-instructions-list { margin: 0; padding-left: 20px; color: #d0d7d2; font-size: 13px; line-height: 1.7; }
.doc-instructions-list li { margin-bottom: 10px; padding-left: 4px; }
.doc-instructions-list li:last-child { margin-bottom: 0; }
.doc-instructions-list strong { color: #ffffff; letter-spacing: 0.2px; }
.doc-link { color: #75db8b; text-decoration: underline; font-weight: 600; }
.doc-link:hover { color: #ffffff; text-decoration: none; }