/* Critical CSS - Above the fold styles */
* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

html {
 height: 100%;
 font-size: 16px;
 overflow-y: scroll;
 scrollbar-gutter: stable;
}

body {
 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 line-height: 1.6;
 color: #333;
 background-color: #f8f9fa;
 min-height: 100vh;
 display: flex;
 flex-direction: column;
 margin: 0;
 padding: 0;
 overflow-x: hidden;
 width: calc(100vw - (100vw - 100%));
 max-width: 100%;
}

/* Remove duplicate container styles that were moved to the top */

/* Remove duplicate header styles that were moved to the top */

/* Message of the Day Banner */
.motd-banner {
 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
 color: white;
 padding: 1rem 0;
 box-shadow: 0 2px 8px rgba(0,0,0,0.15);
 position: relative;
 overflow: hidden;
 width: 100%;
}

.motd-banner::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
 animation: shimmer 3s infinite;
 transform: translateX(-100%);
}

/* Optimize animations for better performance */
@keyframes shimmer {
 0% {transform: translateX(-100%)}
 100% {transform: translateX(100%)}
}

.motd-content {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 0.75rem;
 text-align: center;
 position: relative;
 z-index: 1;
 flex-wrap: wrap;
}

.motd-icon {
 font-size: 1.2rem;
 animation: pulse 2s infinite;
 flex-shrink: 0;
}

@keyframes pulse {
 0%, 100% {transform: scale(1)}
 50% {transform: scale(1.1)}
}

.motd-text {
 font-size: 1.1rem;
 font-weight: 500;
 text-shadow: 0 1px 2px rgba(0,0,0,0.2);
 line-height: 1.4;
 word-wrap: break-word;
 overflow-wrap: break-word;
}

/* Responsive adjustments for MOTD */
@media (max-width: 768px) {
 .motd-banner {
 padding: 0.75rem 0;
 }
 
 .motd-content {
 flex-direction: column;
 gap: 0.5rem;
 padding: 0 1rem;
 }
 
 .motd-text {
 font-size: 1rem;
 }
}

@media (max-width: 480px) {
 .motd-banner {
 padding: 0.5rem 0;
 }
 
 .motd-text {
 font-size: 0.9rem;
 padding: 0 0.5rem;
 }
}

/* Main content area */
main {
 flex: 1;
 width: 100%;
}

/* Footer */
footer {
 background: #2c3e50;
 color: white;
 text-align: center;
 padding: 2rem 0;
 margin-top: auto;
 width: 100%;
}

footer p {
 margin: 0;
 word-wrap: break-word;
 overflow-wrap: break-word;
}

/* Remove duplicate styles that were moved to the top */

/* Upload button styles */
.image-upload-options {
 display: flex;
 gap: 10px;
 margin-bottom: 10px;
}

.upload-btn {
 padding: 10px 15px;
 border: 2px solid #007bff;
 background: #007bff;
 color: white;
 border-radius: 5px;
 cursor: pointer;
 font-size: 14px;
 transition: all 0.3s ease;
}

.upload-btn:hover {
 background: #0056b3;
 border-color: #0056b3;
}

.camera-btn {
 background: #28a745;
 border-color: #28a745;
}

.camera-btn:hover {
 background: #1e7e34;
 border-color: #1e7e34;
}

/* Progress bar styles */
.progress-bar {
 width: 100%;
 height: 20px;
 background-color: #f0f0f0;
 border-radius: 10px;
 overflow: hidden;
 margin-bottom: 5px;
}

#progress-fill {
 height: 100%;
 background: linear-gradient(90deg, #4CAF50, #45a049);
 transition: width 0.3s ease;
}

#progress-text {
 font-size: 14px;
 color: #666;
 text-align: center;
}

/* Image preview styles */
#image-preview {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
 margin-top: 10px;
}

#image-preview > div {
 position: relative;
 border: 2px solid #ddd;
 border-radius: 8px;
 padding: 5px;
 background: #f9f9f9;
}

#image-preview img {
 border-radius: 4px;
}

/* Upload error/warning messages */
.upload-error {
 background-color: #f8d7da;
 color: #721c24;
 padding: 10px;
 border: 1px solid #f5c6cb;
 border-radius: 4px;
 margin: 10px 0;
}

.upload-warning {
 background-color: #fff3cd;
 color: #856404;
 padding: 10px;
 border: 1px solid #ffeaa7;
 border-radius: 4px;
 margin: 10px 0;
}

.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 20px;
 width: 100%;
 box-sizing: border-box;
}

/* Header */
header {
 background: linear-gradient(135deg, #2c3e50, #3498db);
 color: white;
 padding: 1rem 0;
 box-shadow: 0 2px 5px rgba(0,0,0,0.1);
 width: 100%;
 position: relative;
}

header .container {
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 gap: 1rem;
}

header h1 {
 flex-shrink: 0;
}

header h1 a {
 color: white;
 text-decoration: none;
 font-size: 1.8rem;
 font-weight: bold;
 word-wrap: break-word;
 overflow-wrap: break-word;
}

nav {
 flex-grow: 1;
 display: flex;
 justify-content: flex-end;
}

nav ul {
 display: flex;
 list-style: none;
 gap: 1rem;
 flex-wrap: wrap;
 align-items: center;
 justify-content: flex-end;
 margin: 0;
 padding: 0;
}

nav a {
 color: white;
 text-decoration: none;
 padding: 0.4rem 0.8rem;
 border-radius: 5px;
 transition: background-color 0.3s;
 font-size: 0.9rem;
 white-space: nowrap;
 display: block;
}

nav a:hover {
 background-color: rgba(255,255,255,0.2);
}

nav a.active {
 background-color: rgba(255,255,255,0.3);
}

/* Hero Section */
.hero {
 text-align: center;
 padding: 3rem 0;
 background: white;
 margin-bottom: 2rem;
 border-radius: 10px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero h2 {
 font-size: 2.5rem;
 color: #2c3e50;
 margin-bottom: 1rem;
}

.hero p {
 font-size: 1.2rem;
 color: #7f8c8d;
}

/* Search Section */
.search-section {
 background: white;
 padding: 2rem;
 border-radius: 10px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 margin-bottom: 2rem;
}

.search-form .search-row {
 display: grid;
 grid-template-columns: 2fr 1fr 1fr 1fr auto;
 gap: 1rem;
 align-items: center;
}

.search-form input,
.search-form select,
.search-form button {
 padding: 0.75rem;
 border: 2px solid #e9ecef;
 border-radius: 5px;
 font-size: 1rem;
}

.search-form input:focus,
.search-form select:focus {
 outline: none;
 border-color: #3498db;
}

.search-form button {
 background: #3498db;
 color: white;
 border: none;
 cursor: pointer;
 font-weight: bold;
 transition: background-color 0.3s;
}

.search-form button:hover {
 background: #2980b9;
}

/* Results Section */
.results-section {
 margin-bottom: 2rem;
}

.results-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 1.5rem;
}

.results-header h3 {
 color: #2c3e50;
 font-size: 1.5rem;
}

.clear-filters {
 color: #e74c3c;
 text-decoration: none;
 font-weight: bold;
}

.clear-filters:hover {
 text-decoration: underline;
}
/* Listings Grid */
.listings-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
 gap: 1.5rem;
 margin-bottom: 2rem;
}

/* Fallback for older browsers that don't support grid */
@supports not (display: grid) {
 .listings-grid {
 display: flex;
 flex-wrap: wrap;
 margin: -0.75rem;
 }
 
 .listings-grid .listing-card {
 flex: 0 0 calc(33.333% - 1.5rem);
 margin: 0.75rem;
 }
}.listing-card {
 background: white;
 border-radius: 10px;
 overflow: hidden;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 transition: transform 0.3s, box-shadow 0.3s;
}

.listing-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.listing-image {
 aspect-ratio: 16/9;
 min-height: 180px;
 max-height: 250px;
 overflow: hidden;
 background: #f8f9fa;
 display: flex;
 align-items: center;
 justify-content: center;
 cursor: pointer;
 transition: transform 0.3s ease;
}

.listing-image:hover {
 transform: scale(1.02);
}

.listing-image img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform 0.3s ease;
}

.listing-image img:hover {
 transform: scale(1.05);
}

.no-image {
 color: #95a5a6;
 font-size: 1.1rem;
 font-weight: bold;
}

.listing-content {
 padding: 1.5rem;
}

.listing-content h4 {
 margin-bottom: 0.5rem;
}

.listing-content h4 a {
 color: #2c3e50;
 text-decoration: none;
 font-size: 1.2rem;
}

.listing-content h4 a:hover {
 color: #3498db;
}

.price {
 font-size: 1.3rem;
 font-weight: bold;
 color: #27ae60;
 margin-bottom: 0.5rem;
}

.condition,
.location,
.callsign {
 color: #7f8c8d;
 margin-bottom: 0.3rem;
 font-size: 0.9rem;
}

.callsign {
 font-weight: bold;
 color: #3498db;
 text-transform: uppercase;
}

.date {
 color: #95a5a6;
 font-size: 0.8rem;
 margin-top: 0.5rem;
}

/* Featured Adverts Styling */
.featured-section {
 margin-bottom: 3rem;
}

.featured-title {
 color: #f39c12;
 font-size: 1.8rem;
 font-weight: bold;
 margin-bottom: 1.5rem;
 text-align: center;
 text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.featured-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
 gap: 2.5rem;
}

/* Fallback for older browsers that don't support grid */
@supports not (display: grid) {
 .featured-grid {
 display: flex;
 flex-wrap: wrap;
 margin: -1.25rem;
 }
 
 .featured-grid .listing-card {
 flex: 0 0 calc(50% - 2.5rem);
 margin: 1.25rem;
 }
}
}

.featured-card {
 position: relative;
 background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
 border: 3px solid #f39c12;
 box-shadow: 0 8px 25px rgba(243, 156, 18, 0.2);
 transform: scale(1.02);
}

.featured-card:hover {
 transform: scale(1.05) translateY(-8px);
 box-shadow: 0 15px 35px rgba(243, 156, 18, 0.3);
}

.featured-badge {
 position: absolute;
 top: 15px;
 right: 15px;
 background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
 color: white;
 padding: 0.5rem 1rem;
 border-radius: 25px;
 font-weight: bold;
 font-size: 0.8rem;
 z-index: 10;
 box-shadow: 0 3px 10px rgba(0,0,0,0.2);
 animation: pulse-featured 2s infinite;
}

@keyframes pulse-featured {
 0%, 100% {
 transform: scale(1);
 box-shadow: 0 3px 10px rgba(0,0,0,0.2);
 }
 50% {
 transform: scale(1.05);
 box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
 }
}

.featured-card .listing-content h4 a {
 color: #d35400;
 font-size: 1.3rem;
 font-weight: bold;
}

.featured-card .price {
 font-size: 1.5rem;
 color: #e67e22;
 text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.regular-section {
 margin-top: 2rem;
 margin-bottom: 1.5rem;
}

.regular-title {
 color: #2c3e50;
 font-size: 1.5rem;
 font-weight: bold;
 margin-bottom: 1rem;
 padding-bottom: 0.5rem;
 border-bottom: 2px solid #ecf0f1;
}

/* Responsive adjustments for featured adverts */
@media (max-width: 768px) {
 .featured-grid {
 grid-template-columns: 1fr;
 gap: 1.5rem;
 }
 
 .featured-card {
 transform: scale(1);
 }
 
 .featured-card:hover {
 transform: scale(1.02) translateY(-5px);
 }
 
 .featured-badge {
 top: 10px;
 right: 10px;
 padding: 0.4rem 0.8rem;
 font-size: 0.7rem;
 }
}

/* No Results */
.no-results {
 text-align: center;
 padding: 3rem;
 background: white;
 border-radius: 10px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-results h3 {
 color: #7f8c8d;
 margin-bottom: 1rem;
}

.no-results a {
 color: #3498db;
 text-decoration: none;
 font-weight: bold;
}

.no-results a:hover {
 text-decoration: underline;
}

/* Forms */
.form-container {
 max-width: 600px;
 margin: 2rem auto;
 background: white;
 padding: 2rem;
 border-radius: 10px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
 margin-bottom: 1.5rem;
}

.form-group label {
 display: block;
 margin-bottom: 0.5rem;
 font-weight: bold;
 color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
 width: 100%;
 padding: 0.75rem;
 border: 2px solid #e9ecef;
 border-radius: 5px;
 font-size: 1rem;
 font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
 outline: none;
 border-color: #3498db;
}

.form-group textarea {
 resize: vertical;
 min-height: 120px;
}

.btn {
 display: inline-block;
 padding: 0.75rem 2rem;
 background: #3498db;
 color: white;
 text-decoration: none;
 border: none;
 border-radius: 5px;
 cursor: pointer;
 font-size: 1rem;
 font-weight: bold;
 transition: background-color 0.3s;
}

.btn:hover {
 background: #2980b9;
}

.btn-danger {
 background: #e74c3c;
}

.btn-danger:hover {
 background: #c0392b;
}

.btn-success {
 background: #27ae60;
}

.btn-success:hover {
 background: #229954;
}

/* Messages */
.message {
 padding: 1rem;
 margin-bottom: 1rem;
 border-radius: 5px;
 font-weight: bold;
}

.message.success {
 background: #d4edda;
 color: #155724;
 border: 1px solid #c3e6cb;
}

.message.error {
 background: #f8d7da;
 color: #721c24;
 border: 1px solid #f5c6cb;
}

.message.info {
 background: #d1ecf1;
 color: #0c5460;
 border: 1px solid #bee5eb;
}

/* Image Modal/Lightbox */
.image-modal {
 display: none;
 position: fixed;
 z-index: 1000;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.9);
 /* CSS transitions with vendor prefixes */
 -webkit-transition: opacity 0.3s ease;
 -moz-transition: opacity 0.3s ease;
 -ms-transition: opacity 0.3s ease;
 -o-transition: opacity 0.3s ease;
 transition: opacity 0.3s ease;
 opacity: 0;
}

.image-modal.show {
 display: flex;
 /* Flexbox with vendor prefixes */
 display: -webkit-box;
 display: -ms-flexbox;
 display: flex;
 -webkit-box-align: center;
 -ms-flex-align: center;
 align-items: center;
 -webkit-box-pack: center;
 -ms-flex-pack: center;
 justify-content: center;
 opacity: 1;
}

.modal-content {
 position: relative;
 max-width: 90%;
 max-height: 85%;
 margin: auto;
 /* CSS transforms with vendor prefixes */
 -webkit-transform: scale(0.8);
 -moz-transform: scale(0.8);
 -ms-transform: scale(0.8);
 -o-transform: scale(0.8);
 transform: scale(0.8);
 /* CSS transitions with vendor prefixes */
 -webkit-transition: transform 0.3s ease;
 -moz-transition: transform 0.3s ease;
 -ms-transition: transform 0.3s ease;
 -o-transition: transform 0.3s ease;
 transition: transform 0.3s ease;
}

.image-modal.show .modal-content {
 /* CSS transforms with vendor prefixes */
 -webkit-transform: scale(1);
 -moz-transform: scale(1);
 -ms-transform: scale(1);
 -o-transform: scale(1);
 transform: scale(1);
}

.modal-content img {
 width: 100%;
 height: auto;
 max-width: 100%;
 max-height: 80vh;
 object-fit: contain;
 border-radius: 10px;
 display: block;
}

.close-modal {
 position: absolute;
 top: -40px;
 right: 0;
 color: white;
 font-size: 35px;
 font-weight: bold;
 cursor: pointer;
 background: rgba(0, 0, 0, 0.5);
 border-radius: 50%;
 width: 40px;
 height: 40px;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: background-color 0.3s;
}

.close-modal:hover {
 background: rgba(0, 0, 0, 0.8);
}

/* Modal Navigation */
.modal-navigation {
 position: absolute;
 top: 50%;
 left: 0;
 right: 0;
 transform: translateY(-50%);
 pointer-events: none;
 z-index: 10;
}

.nav-btn {
 position: absolute;
 top: 0;
 color: white;
 font-size: 24px;
 font-weight: bold;
 cursor: pointer;
 background: rgba(0, 0, 0, 0.6);
 border: none;
 border-radius: 50%;
 width: 50px;
 height: 50px;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: all 0.3s ease;
 user-select: none;
 pointer-events: auto;
}

.nav-btn:hover {
 background: rgba(0, 0, 0, 0.9);
 transform: scale(1.1);
}

.prev-btn {
 left: -60px;
}

.next-btn {
 right: -60px;
}

/* Modal Image Counter */
.modal-image-counter {
 position: absolute;
 top: -40px;
 left: 50%;
 transform: translateX(-50%);
 color: white;
 background: rgba(0, 0, 0, 0.6);
 padding: 5px 15px;
 border-radius: 20px;
 font-size: 14px;
 font-weight: bold;
}

/* Modal Advert Link */
.modal-advert-link {
 position: absolute;
 bottom: -60px;
 left: 50%;
 transform: translateX(-50%);
 z-index: 1001;
}

.view-advert-btn {
 display: inline-block;
 background: #3498db;
 color: white;
 padding: 12px 24px;
 text-decoration: none;
 border-radius: 25px;
 font-weight: bold;
 font-size: 14px;
 transition: all 0.3s ease;
 box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
 white-space: nowrap;
}

.view-advert-btn:hover {
 background: #2980b9;
 transform: translateY(-2px);
 box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
 color: white;
 text-decoration: none;
}

@keyframes fadeIn {
 from {opacity: 0}
 to {opacity: 1}
}

@keyframes zoomIn {
 from {transform: scale(0.8);opacity: 0}
 to {transform: scale(1);opacity: 1}
}

/* Modal Navigation Base Styles */
.modal-nav {
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
 background: rgba(0, 0, 0, 0.6);
 color: white;
 border: none;
 border-radius: 50%;
 width: 50px;
 height: 50px;
 font-size: 28px;
 font-weight: bold;
 cursor: pointer;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: all 0.3s ease;
 user-select: none;
 z-index: 1001;
}

.modal-nav:hover {
 background: rgba(0, 0, 0, 0.9);
 transform: translateY(-50%) scale(1.1);
}

.modal-prev {
 left: 20px;
}

.modal-next {
 right: 20px;
}

@media (max-width: 768px) {
 .modal-nav {
 width: 40px;
 height: 40px;
 font-size: 24px;
 }
 
 .modal-prev {
 left: 10px;
 }
 
 .modal-next {
 right: 10px;
 }
 
 .nav-btn {
 width: 40px;
 height: 40px;
 font-size: 20px;
 }
 
 .prev-btn {
 left: 10px;
 }
 
 .next-btn {
 right: 10px;
 }
 
 .close-modal {
 top: 10px;
 right: 10px;
 }
}@media (max-width: 768px) {
 .container {
 padding: 0 1rem;
 max-width: 100%;
 overflow-x: hidden;
 }
 
 .search-form .search-row {
 grid-template-columns: 1fr;
 gap: 0.5rem;
 }
 
 .listings-grid {
 grid-template-columns: 1fr;
 }
 
 header .container {
 flex-direction: column;
 gap: 1rem;
 align-items: stretch;
 }
 
 header h1 {
 text-align: center;
 margin-bottom: 0.5rem;
 }
 
 header h1 a {
 font-size: 1.5rem;
 word-break: break-word;
 }
 
 nav {
 justify-content: center;
 overflow-x: auto;
 -webkit-overflow-scrolling: touch;
 }
 
 nav ul {
 flex-wrap: nowrap;
 justify-content: flex-start;
 gap: 0.5rem;
 min-width: max-content;
 padding: 0 0.5rem;
 }
 
 nav a {
 font-size: 0.8rem;
 padding: 0.4rem 0.8rem;
 white-space: nowrap;
 min-width: max-content;
 }
 
 .motd-banner {
 padding: 0.5rem 0;
 }
 
 .motd-content {
 flex-direction: column;
 text-align: center;
 gap: 0.5rem;
 }
 
 .motd-text {
 font-size: 0.9rem;
 line-height: 1.4;
 }
 
 .hero h2 {
 font-size: 2rem;
 }
 
 .results-header {
 flex-direction: column;
 gap: 1rem;
 text-align: center;
 }
 
 footer {
 padding: 1rem 0;
 }
 
 footer p {
 font-size: 0.8rem;
 margin: 0;
 word-wrap: break-word;
 }
}

@media (max-width: 480px) {
 .container {
 padding: 0 10px;
 }
 
 nav ul {
 gap: 0.3rem;
 justify-content: center;
 }
 
 nav a {
 padding: 0.25rem 0.5rem;
 font-size: 0.8rem;
 }
 
 .hero {
 padding: 2rem 0;
 }
 
 .hero h2 {
 font-size: 1.5rem;
 }
 
 .search-section {
 padding: 1rem;
 }
 
 .form-container {
 margin: 1rem;
 padding: 1rem;
 }
}

/* Contact Page Styles */
.contact-info {
 max-width: 800px;
 margin: 0 auto;
}

.contact-section {
 background: white;
 padding: 2rem;
 margin-bottom: 2rem;
 border-radius: 10px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-section h3 {
 color: #2c3e50;
 margin-bottom: 1rem;
 font-size: 1.3rem;
 border-bottom: 2px solid #3498db;
 padding-bottom: 0.5rem;
}

.contact-details {
 display: grid;
 gap: 1rem;
}

.contact-item {
 display: flex;
 align-items: center;
 padding: 0.5rem 0;
}

.contact-item strong {
 min-width: 100px;
 color: #2c3e50;
 margin-right: 1rem;
}

.contact-item a {
 color: #3498db;
 text-decoration: none;
 word-break: break-all;
 display: inline-block;
 max-width: 100%;
}

.contact-item a:hover {
 text-decoration: underline;
}

.email-highlight {
 background: #ecf0f1;
 padding: 1rem;
 border-radius: 5px;
 text-align: center;
 margin: 1rem 0;
 border-left: 4px solid #3498db;
}

.email-highlight a {
 font-size: 1.2rem;
 font-weight: bold;
 color: #2c3e50;
 text-decoration: none;
}

.email-highlight a:hover {
 color: #3498db;
}

.support-info ul {
 margin: 1rem 0;
 padding-left: 2rem;
}

.support-info li {
 margin-bottom: 0.5rem;
 color: #555;
}

.about-info p {
 line-height: 1.6;
 color: #555;
 margin-bottom: 1rem;
}

@media (max-width: 768px) {
 .contact-section {
 padding: 1.5rem;
 margin-bottom: 1rem;
 }
 
 .contact-item {
 flex-direction: column;
 align-items: flex-start;
 }
 
 .contact-item strong {
 margin-bottom: 0.5rem;
 margin-right: 0;
 }
}

/* Admin Styles */
.admin-header {
 background: #e74c3c;
}

.admin-nav {
 background: #c0392b;
 padding: 1rem 0;
}

.admin-nav .container {
 display: flex;
 align-items: center;
}

.admin-nav ul {
 display: flex;
 gap: 0.5rem;
 list-style: none;
 margin: 0;
 padding: 0;
 flex-wrap: nowrap;
 justify-content: space-between;
 width: 100%;
}

.admin-nav li {
 margin: 0;
}

.admin-nav a {
 color: white;
 text-decoration: none;
 padding: 0.75rem 1.25rem;
 border-radius: 5px;
 display: block;
 white-space: nowrap;
 transition: background-color 0.3s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
 background: rgba(255,255,255,0.2);
}

.admin-stats {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 1rem;
 margin-bottom: 2rem;
}

.stat-card {
 background: white;
 padding: 1.5rem;
 border-radius: 10px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 text-align: center;
}

.stat-number {
 font-size: 2rem;
 font-weight: bold;
 color: #3498db;
}

.stat-label {
 color: #7f8c8d;
 margin-top: 0.5rem;
}

/* Table Styles */
.table-container {
 background: white;
 border-radius: 10px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 overflow: hidden;
}

table {
 width: 100%;
 border-collapse: collapse;
}

th, td {
 padding: 1rem;
 text-align: left;
 border-bottom: 1px solid #e9ecef;
}

th {
 background: #f8f9fa;
 font-weight: bold;
 color: #2c3e50;
}

tr:hover {
 background: #f8f9fa;
}

.status-pending {
 color: #f39c12;
 font-weight: bold;
}

.status-approved {
 color: #27ae60;
 font-weight: bold;
}

.status-rejected {
 color: #e74c3c;
 font-weight: bold;
}

.status-sold {
 color: #95a5a6;
 font-weight: bold;
}

/* Action Buttons */
.action-buttons {
 display: flex;
 gap: 0.5rem;
 flex-wrap: wrap;
}

.btn-sm {
 padding: 0.25rem 0.75rem;
 font-size: 0.875rem;
}

/* Image Gallery */
.image-gallery {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
 gap: 1rem;
 margin: 1rem 0;
}

.image-gallery img {
 width: 100%;
 height: 150px;
 object-fit: cover;
 border-radius: 5px;
 cursor: pointer;
 transition: transform 0.3s;
}

.image-gallery img:hover {
 transform: scale(1.05);
}

/* Events Specific Styles */
.events-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
 gap: 2rem;
 margin-bottom: 2rem;
}

.event-card {
 background: white;
 border-radius: 10px;
 overflow: hidden;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 transition: transform 0.3s, box-shadow 0.3s;
 border-left: 4px solid #3498db;
}

.event-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.event-card.featured {
 border-left-color: #f39c12;
 background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

/* Enhanced Featured Events Styling */
.featured-card.event-card {
 position: relative;
 background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
 border: 3px solid #f39c12;
 box-shadow: 0 8px 25px rgba(243, 156, 18, 0.2);
 transform: scale(1.02);
}

.featured-card.event-card:hover {
 transform: scale(1.05) translateY(-8px);
 box-shadow: 0 15px 35px rgba(243, 156, 18, 0.3);
}

.featured-card.event-card .event-title a {
 color: #d35400;
 font-size: 1.3rem;
 font-weight: bold;
}

.featured-card.event-card .event-cost {
 color: #e67e22;
 font-weight: bold;
}

.featured-card.event-card .event-category {
 background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
 color: white;
 padding: 0.3rem 0.8rem;
 border-radius: 15px;
 font-size: 0.8rem;
 font-weight: bold;
 text-transform: uppercase;
}

.featured-card.event-card .event-datetime,
.featured-card.event-card .event-location,
.featured-card.event-card .event-organizer {
 font-weight: 500;
 color: #2c3e50;
}

.event-header {
 padding: 1.5rem 1.5rem 1rem;
 border-bottom: 1px solid #f8f9fa;
}

.event-title {
 font-size: 1.3rem;
 font-weight: bold;
 color: #2c3e50;
 margin-bottom: 0.5rem;
 line-height: 1.3;
}

.event-title a {
 color: inherit;
 text-decoration: none;
}

.event-title a:hover {
 color: #3498db;
}

.event-category {
 display: inline-block;
 background: #3498db;
 color: white;
 padding: 0.25rem 0.75rem;
 border-radius: 15px;
 font-size: 0.8rem;
 font-weight: bold;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.event-category.net {
 background: #27ae60;
}

.event-category.rally {
 background: #e74c3c;
}

.event-category.club-meeting {
 background: #9b59b6;
}

.event-category.contest {
 background: #f39c12;
}

.event-category.training {
 background: #34495e;
}

.event-content {
 padding: 1rem 1.5rem 1.5rem;
}

.event-datetime {
 display: flex;
 align-items: center;
 gap: 0.5rem;
 margin-bottom: 1rem;
 color: #2c3e50;
 font-weight: 600;
}

.event-datetime i {
 color: #3498db;
 width: 16px;
}

.event-location {
 display: flex;
 align-items: center;
 gap: 0.5rem;
 margin-bottom: 1rem;
 color: #7f8c8d;
}

.event-location i {
 color: #e74c3c;
 width: 16px;
}

.event-description {
 color: #555;
 line-height: 1.5;
 margin-bottom: 1rem;
 display: -webkit-box;
 -webkit-line-clamp: 3;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

.event-organizer {
 display: flex;
 align-items: center;
 gap: 0.5rem;
 color: #3498db;
 font-weight: bold;
 font-size: 0.9rem;
 text-transform: uppercase;
}

.event-organizer i {
 width: 14px;
}

.event-cost {
 background: #f8f9fa;
 padding: 0.75rem;
 border-radius: 5px;
 margin: 1rem 0;
 border-left: 3px solid #27ae60;
}

.event-cost strong {
 color: #27ae60;
}

.event-registration {
 background: #e8f4fd;
 padding: 0.75rem;
 border-radius: 5px;
 margin: 1rem 0;
 border-left: 3px solid #3498db;
}

.event-registration strong {
 color: #3498db;
}

.event-status {
 display: inline-block;
 padding: 0.25rem 0.75rem;
 border-radius: 15px;
 font-size: 0.8rem;
 font-weight: bold;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.event-status.pending {
 background: #fff3cd;
 color: #856404;
 border: 1px solid #ffeaa7;
}

.event-status.approved {
 background: #d4edda;
 color: #155724;
 border: 1px solid #c3e6cb;
}

.event-status.rejected {
 background: #f8d7da;
 color: #721c24;
 border: 1px solid #f5c6cb;
}

.event-status.withdrawn {
 background: #e2e3e5;
 color: #383d41;
 border: 1px solid #d6d8db;
}

/* Event Detail Page */
.event-detail {
 background: white;
 border-radius: 10px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 overflow: hidden;
 margin-bottom: 2rem;
}

.event-detail-header {
 background: linear-gradient(135deg, #3498db, #2980b9);
 color: white;
 padding: 2rem;
 text-align: center;
}

.event-detail-title {
 font-size: 2.2rem;
 font-weight: bold;
 margin-bottom: 1rem;
 line-height: 1.2;
}

.event-detail-category {
 display: inline-block;
 background: rgba(255,255,255,0.2);
 padding: 0.5rem 1rem;
 border-radius: 20px;
 font-weight: bold;
 text-transform: uppercase;
 letter-spacing: 1px;
}

.event-detail-body {
 padding: 2rem;
}

.event-info-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 2rem;
 margin-bottom: 2rem;
}

.event-info-section {
 background: #f8f9fa;
 padding: 1.5rem;
 border-radius: 8px;
 border-left: 4px solid #3498db;
}

.event-info-section h4 {
 color: #2c3e50;
 margin-bottom: 1rem;
 font-size: 1.1rem;
 font-weight: bold;
}

.event-info-section p {
 margin-bottom: 0.5rem;
 color: #555;
}

.event-info-section strong {
 color: #2c3e50;
}

.social-share {
 background: #f8f9fa;
 padding: 1.5rem;
 border-radius: 8px;
 text-align: center;
 margin: 2rem 0;
}

.social-share h4 {
 margin-bottom: 1rem;
 color: #2c3e50;
}

.social-buttons {
 display: flex;
 justify-content: center;
 gap: 1rem;
 flex-wrap: wrap;
}

.social-btn {
 display: inline-flex;
 align-items: center;
 gap: 0.5rem;
 padding: 0.75rem 1.5rem;
 border-radius: 25px;
 text-decoration: none;
 font-weight: bold;
 transition: transform 0.3s, box-shadow 0.3s;
}

.social-btn:hover {
 transform: translateY(-2px);
 box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-btn.facebook {
 background: #3b5998;
 color: white;
}

.social-btn.twitter {
 background: #1da1f2;
 color: white;
}

.social-btn.email {
 background: #34495e;
 color: white;
}

/* Events Filter Bar */
.events-filters {
 background: white;
 padding: 1.5rem;
 border-radius: 10px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 margin-bottom: 2rem;
}

.filter-row {
 display: grid;
 grid-template-columns: 2fr 1fr 1fr auto;
 gap: 1rem;
 align-items: center;
}

.filter-group {
 display: flex;
 flex-direction: column;
 gap: 0.5rem;
}

.filter-group label {
 font-weight: bold;
 color: #2c3e50;
 font-size: 0.9rem;
}

/* My Events Page */
.my-events-stats {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 1.5rem;
 margin-bottom: 2rem;
}

.events-stat-card {
 background: white;
 padding: 1.5rem;
 border-radius: 10px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 text-align: center;
 border-top: 4px solid #3498db;
}

.events-stat-card.pending {
 border-top-color: #f39c12;
}

.events-stat-card.approved {
 border-top-color: #27ae60;
}

.events-stat-card.rejected {
 border-top-color: #e74c3c;
}

/* Admin Events Styles */
.admin-events-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 2rem;
 flex-wrap: wrap;
 gap: 1rem;
}

.admin-events-filters {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 1rem;
 margin-bottom: 2rem;
}

.events-table-container {
 background: white;
 border-radius: 10px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 overflow: hidden;
}

.events-table {
 width: 100%;
 border-collapse: collapse;
}

.events-table th,
.events-table td {
 padding: 1rem;
 text-align: left;
 border-bottom: 1px solid #e9ecef;
 vertical-align: top;
}

.events-table th {
 background: #f8f9fa;
 font-weight: bold;
 color: #2c3e50;
 position: sticky;
 top: 0;
 z-index: 10;
}

.events-table tr:hover {
 background: #f8f9fa;
}

.event-title-cell {
 max-width: 200px;
}

.event-title-cell a {
 color: #2c3e50;
 text-decoration: none;
 font-weight: bold;
}

.event-title-cell a:hover {
 color: #3498db;
}

.event-date-cell {
 white-space: nowrap;
 font-weight: 600;
 color: #2c3e50;
}

.event-organizer-cell {
 color: #3498db;
 font-weight: bold;
}

/* Responsive Events Styles */
@media screen and (max-width: 768px) {
 .events-grid {
 grid-template-columns: 1fr;
 gap: 1rem;
 }
 
 .event-card {
 margin-bottom: 1rem;
 }
 
 .event-header {
 padding: 1rem;
 }
 
 .event-content {
 padding: 1rem;
 }
 
 .event-title {
 font-size: 1.1rem;
 }
 
 .event-detail-header {
 padding: 1.5rem 1rem;
 }
 
 .event-detail-title {
 font-size: 1.8rem;
 }
 
 .event-detail-body {
 padding: 1.5rem 1rem;
 }
 
 .event-info-grid {
 grid-template-columns: 1fr;
 gap: 1rem;
 }
 
 .filter-row {
 grid-template-columns: 1fr;
 gap: 1rem;
 }
 
 .social-buttons {
 flex-direction: column;
 align-items: center;
 }
 
 .social-btn {
 width: 200px;
 justify-content: center;
 }
 
 .my-events-stats {
 grid-template-columns: repeat(2, 1fr);
 gap: 1rem;
 }
 
 .admin-events-header {
 flex-direction: column;
 align-items: stretch;
 }
 
 .admin-events-filters {
 grid-template-columns: 1fr;
 }
 
 .events-table-container {
 overflow-x: auto;
 -webkit-overflow-scrolling: touch;
 }
 
 .events-table {
 min-width: 100%;
 width: 100%;
 font-size: 0.9rem;
 }
 
 .events-table th,
 .events-table td {
 padding: 0.75rem 0.5rem;
 }
}

@media screen and (max-width: 480px) {
 .event-detail-title {
 font-size: 1.5rem;
 }
 
 .my-events-stats {
 grid-template-columns: 1fr;
 }
 
 .events-stat-card {
 padding: 1rem;
 }
 
 .events-table {
 min-width: 100%;
 width: 100%;
 font-size: 0.8rem;
 }
 
 .events-table th,
 .events-table td {
 padding: 0.5rem 0.25rem;
 }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
 .container {
 padding: 0 15px;
 }
 
 /* Header adjustments */
 header .container {
 flex-direction: column;
 gap: 1rem;
 text-align: center;
 }
 
 header h1 {
 width: 100%;
 }
 
 header h1 a {
 font-size: 1.5rem;
 }
 
 nav {
 width: 100%;
 justify-content: center;
 }
 
 nav ul {
 gap: 0.5rem;
 justify-content: center;
 flex-wrap: wrap;
 }
 
 nav a {
 padding: 0.5rem 0.75rem;
 font-size: 0.85rem;
 }
 
 /* Admin navigation */
 .admin-nav ul {
 flex-wrap: nowrap;
 justify-content: flex-start;
 gap: 0.5rem;
 overflow-x: auto;
 -webkit-overflow-scrolling: touch;
 }
 
 .admin-nav a {
 padding: 0.6rem 1rem;
 font-size: 0.9rem;
 min-width: auto;
 }
 
 /* Search form adjustments */
 .search-form .search-row {
 grid-template-columns: 1fr;
 gap: 0.75rem;
 }
 
 /* Statistics cards */
 .admin-stats {
 grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
 gap: 1rem;
 }
 
 .stat-card {
 padding: 1rem;
 min-width: 0;/* Allow cards to shrink */
 }
 
 .stat-number {
 font-size: 1.5rem;
 }
 
 /* Table container with horizontal scroll */
 .table-container {
 overflow-x: auto;
 -webkit-overflow-scrolling: touch;
 width: 100%;
 margin: 0 -15px;/* Extend to screen edges */
 padding: 0 15px;
 }
 
 table {
 min-width: 800px;/* Ensure table has minimum width to trigger horizontal scroll */
 font-size: 0.9rem;
 width: 100%;
 }
 
 th, td {
 padding: 0.75rem 0.5rem;
 white-space: nowrap;
 }
 
 /* Admin Users page specific mobile styles */
 .table-container table {
 font-size: 0.8rem;
 min-width: 900px;/* Wider minimum for admin users table */
 }
 
 .table-container th,
 .table-container td {
 padding: 0.5rem 0.25rem;
 vertical-align: top;
 }
 
 /* Action buttons stack vertically on mobile */
 .action-buttons {
 flex-direction: column;
 gap: 0.25rem;
 min-width: 100px;
 }
 
 .btn-sm {
 padding: 0.4rem 0.6rem;
 font-size: 0.8rem;
 text-align: center;
 width: 100%;
 }
 
 /* Admin Users page specific mobile styles */
 .admin-table table {
 font-size: 0.8rem;
 }
 
 .admin-table th,
 .admin-table td {
 padding: 0.5rem 0.25rem;
 vertical-align: top;
 }
 
 /* Username container layout */
 .username-container {
 display: flex;
 align-items: center;
 gap: 5px;
 flex-wrap: wrap;
 }
 
 /* Make edit username button smaller on mobile and prevent overlap */
 .table-container .edit-username-btn {
 font-size: 0.65rem !important;
 padding: 0.15rem 0.25rem !important;
 white-space: nowrap;
 flex-shrink: 0;
 line-height: 1.2;
 }
 
 /* Ensure username cell has proper spacing */
 .table-container td:nth-child(2) {
 min-width: 120px;
 word-wrap: break-word;
 }
 
 /* Improve username edit form on mobile */
 .table-container input[type="text"] {
 width: 80px !important;
 font-size: 0.8rem;
 padding: 0.3rem;
 }
 
 .table-container .btn-primary,
 .table-container .btn-secondary {
 font-size: 0.7rem;
 padding: 0.3rem 0.5rem;
 margin: 0.1rem;
 }
 
 /* Listing content adjustments */
 .listing-content {
 padding: 1rem;
 }

 .listings-grid {
 grid-template-columns: 1fr;
 gap: 1rem;
 }
 
 /* Hero section */
 .hero {
 padding: 2rem 0;
 margin: 0 -15px 2rem -15px;/* Extend to screen edges */
 }
 
 .hero h2 {
 font-size: 2rem;
 padding: 0 1rem;
 }
 
 .hero p {
 font-size: 1rem;
 padding: 0 1rem;
 }
 
 /* Form adjustments */
 .form-group {
 margin-bottom: 1rem;
 }
 
 .form-row {
 flex-direction: column;
 gap: 1rem;
 }
 
 /* Footer adjustments */
 footer {
 padding: 1.5rem 0;
 }
 
 footer .container {
 padding: 0 15px;
 }
}

@media screen and (max-width: 480px) {
 /* Extra small screens */
 .container {
 padding: 0 10px;
 overflow-x: hidden;
 }
 
 header h1 a {
 font-size: 1.3rem;
 }
 
 nav ul {
 gap: 0.25rem;
 padding: 0 0.25rem;
 }
 
 nav a {
 padding: 0.3rem 0.5rem;
 font-size: 0.7rem;
 }
 
 .motd-text {
 font-size: 0.8rem;
 }
 
 .motd-icon {
 font-size: 1rem;
 }
 
 .admin-stats {
 grid-template-columns: repeat(2, 1fr);
 gap: 0.75rem;
 }
 
 .stat-card {
 padding: 0.75rem;
 }
 
 .stat-number {
 font-size: 1.3rem;
 }
 
 .table-container {
 margin: 0 -10px;
 padding: 0 10px;
 }
 
 table {
 min-width: 900px;/* Ensure horizontal scroll on small screens */
 width: 100%;
 font-size: 0.75rem;
 }
 
 th, td {
 padding: 0.4rem 0.2rem;
 font-size: 0.7rem;
 }
 
 .btn-sm {
 padding: 0.25rem 0.4rem;
 font-size: 0.65rem;
 }
 
 /* Admin Users page extra small screen adjustments */
 .table-container .btn-link {
 font-size: 0.55rem !important;
 padding: 0.08rem 0.15rem !important;
 margin-left: 1px !important;
 display: block;
 width: fit-content;
 }
 
 /* Username container responsive layout */
 .username-container {
 display: flex;
 align-items: flex-start;
 gap: 3px;
 flex-direction: column;
 }
 
 /* Username column specific adjustments for very small screens */
 .table-container td:nth-child(2) {
 min-width: 140px;
 max-width: 140px;
 overflow: hidden;
 }
 
 /* Make edit username button even smaller on extra small screens */
 .table-container .edit-username-btn {
 font-size: 0.6rem !important;
 padding: 0.1rem 0.2rem !important;
 margin-top: 2px !important;
 align-self: flex-start;
 width: fit-content;
 }
 
 .table-container input[type="text"] {
 width: 65px !important;
 font-size: 0.65rem;
 padding: 0.15rem;
 }
 
 .table-container .btn-primary,
 .table-container .btn-secondary {
 font-size: 0.55rem;
 padding: 0.15rem 0.3rem;
 margin: 0.02rem;
 }
 
 .hero {
 margin: 0 -10px 1.5rem -10px;
 padding: 1.5rem 0;
 }
 
 .hero h2 {
 font-size: 1.6rem;
 }
 
 .hero p {
 font-size: 0.9rem;
 }
 
 footer {
 padding: 1rem 0;
 }
 
 footer .container {
 padding: 0 10px;
 }
 
 footer p {
 font-size: 0.7rem;
 text-align: center;
 }
 
 /* Ensure no horizontal overflow */
 body, html {
 overflow-x: hidden;
 width: 100%;
 }
 
 * {
 max-width: 100%;
 box-sizing: border-box;
 }
}

@media (max-width: 480px) and (orientation: portrait) {
 /* Portrait mode specific styles for phones */
 .username-container {
 display: block !important;
 width: 100%;
 }
 
 .username-container span {
 display: block !important;
 font-size: 0.65rem !important;
 line-height: 1.2 !important;
 word-break: break-word !important;
 margin-bottom: 3px !important;
 width: 100% !important;
 }
 
 /* Username column specific adjustments for portrait mode */
 .table-container td:nth-child(2) {
 min-width: 85px !important;
 max-width: 85px !important;
 overflow: hidden !important;
 padding: 0.2rem 0.05rem !important;
 vertical-align: top !important;
 }
 
 /* Make edit username button visible and touchable in portrait mode - match landscape background */
 .table-container .edit-username-btn {
 font-size: 0.6rem !important;
 padding: 0.2rem 0.4rem !important;
 margin: 2px 0 0 0 !important;
 width: auto !important;
 line-height: 1.2 !important;
 border: none !important;
 background: #3498db !important;
 color: white !important;
 text-decoration: none !important;
 display: inline-block !important;
 vertical-align: top !important;
 clear: both !important;
 float: none !important;
 position: static !important;
 border-radius: 5px !important;
 text-align: center !important;
 cursor: pointer !important;
 min-height: 20px !important;
 min-width: 35px !important;
 }
 
 /* Edit form styling for portrait mode - only applies when form is shown via JavaScript */
 .table-container div[id^="edit-username-"].editing-active {
 display: block !important;
 width: 100% !important;
 margin-top: 3px !important;
 padding: 4px !important;
 background: #f8f9fa !important;
 border-radius: 2px !important;
 border: 1px solid #ccc !important;
 overflow: visible !important;
 position: relative !important;
 z-index: 10 !important;
 }
 
 .table-container div[id^="edit-username-"].editing-active input[type="text"] {
 width: 100% !important;
 font-size: 0.7rem !important;
 padding: 0.3rem !important;
 margin-bottom: 4px !important;
 box-sizing: border-box !important;
 border: 1px solid #ccc !important;
 }
 
 .table-container div[id^="edit-username-"].editing-active .btn {
 font-size: 0.6rem !important;
 padding: 0.25rem 0.4rem !important;
 margin: 2px 3px 2px 0 !important;
 display: inline-block !important;
 min-width: 45px !important;
 border-radius: 2px !important;
 white-space: nowrap !important;
 }
 
 /* Ensure the table cell containing the edit form has enough space */
 .table-container td:has(div[id^="edit-username-"].editing-active) {
 vertical-align: top !important;
 padding: 0.3rem 0.1rem !important;
 overflow: visible !important;
 }
}

@media (max-width: 480px) and (orientation: landscape) {
 /* Landscape mode - more horizontal space available */
 .username-container {
 display: flex !important;
 align-items: center;
 gap: 2px;
 flex-direction: row;
 }
 
 .table-container td:nth-child(2) {
 min-width: 120px !important;
 max-width: 120px !important;
 padding: 0.3rem 0.15rem !important;
 }
 
 .table-container .edit-username-btn {
 font-size: 0.5rem !important;
 padding: 0.05rem 0.12rem !important;
 margin-left: 2px !important;
 line-height: 1.1 !important;
 flex-shrink: 0;
 }
}
