/* Clean layout for Offshore.CAT - consistent spacing across all pages */

/* Basic layout structure */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 10px;
    margin-top: 5px !important;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0 !important;
}

/* Remove all unnecessary spacing */
br {
    display: none !important;
    height: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
}

/* Header and navigation */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    margin-bottom: 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.title-area {
    margin-right: 10px;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    flex-wrap: nowrap;
}

.main-nav li {
    margin: 0;
    white-space: nowrap;
}

.main-nav a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 3px 8px;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-size: 0.8rem !important;
    text-transform: uppercase;
}

.main-nav a i {
    margin-right: 3px;
    font-size: 0.9rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: #dc3545;
}

/* Hide hamburger menu */
.mobile-menu-toggle {
    display: none !important;
}

/* Container width control for higher resolutions */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    padding-bottom: 0;
}

/* Table styling */
.widget-box {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
}

.widget-box:last-child {
    margin-bottom: 0 !important;
}

.widget-box > font {
    font-size: 0.8rem;
    opacity: 0.7;
}

table.dataTable {
    margin-top: 5px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

table.dataTable th, 
table.dataTable td {
    padding: 5px !important;
    font-size: 0.9rem;
}

.dataTables_filter {
    margin-bottom: 5px;
}

/* Sidebar styling */
.sidebar-content {
    padding: 10px;
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 5px;
    margin-bottom: 0;
    margin-top: 5px !important;
}

/* Footer links */
.secondary-nav {
    margin-top: 5px;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.secondary-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.8rem;
}

.secondary-nav a:hover,
.secondary-nav a.active {
    color: #dc3545;
}

/* Icon alignment */
.fa {
    display: inline-block;
    width: 1em;
    text-align: center;
}

/* Fix for the blank space at the bottom */
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Consistent spacing for all pages */
.row {
    margin-bottom: 0 !important;
}

.row + br,
.row + br + .content-wrapper,
.row + .content-wrapper,
.row + .donation-container,
.row + div {
    margin-top: 5px !important;
    padding-top: 0 !important;
}

/* Fix for main content area in all pages */
.main-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.main-content > br {
    display: none !important;
}

/* Fix for donate page */
.donation-container {
    padding-top: 5px !important;
    padding-bottom: 0 !important;
    margin-top: 5px !important;
}

/* Fix for all content areas */
.main-content, 
.addresses,
.content-area {
    padding-top: 0 !important;
    margin-top: 5px !important;
}

/* Widget box spacing */
.widget-box {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav {
        margin-top: 5px;
        width: 100%;
    }
    
    .title-area {
        margin-right: 0;
        margin-bottom: 5px;
        text-align: center;
    }
}

/* Ensure consistent spacing between header and content */
.row + .row {
    margin-top: 0 !important;
}

/* Fix for Telegram image centering */
.information-line[style="display: unset;"] {
    text-align: center;
    display: block !important;
    width: 100%;
    margin-bottom: 0 !important;
}

.information-line[style="display: unset;"] a {
    display: block;
    text-align: center;
    margin-bottom: 0 !important;
}

.information-line img.center {
    display: block;
    margin: 0 auto !important;
    max-width: 100%;
}

/* Remove extra spacing after Telegram image */
.information-line[style="display: unset;"] br {
    display: none !important;
}

/* Fix for legend display */
.information-line[style="display: unset;"] .information-line-title {
    display: block;
    width: 100% !important;
    text-align: center;
    margin-bottom: 5px;
    font-weight: bold;
}

.information-line[style="display: unset;"] .information-line-text {
    display: block;
    width: 100% !important;
    text-align: left;
    margin-left: 0;
}

/* Ensure proper spacing for legend items */
.information-line-text b {
    display: inline-block;
    margin-left: 5px;
}

/* Fix alignment of legend symbols */
.information-line-text br {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    margin: 2px 0 !important;
} 