/* SABC Club Manager Styles */

/* ============================================================================
   Member Directory Styles
   ============================================================================ */

/* Login Form Styles */
.sabc-login-wrapper {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
}

.sabc-login-container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sabc-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.sabc-login-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.sabc-login-header p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.sabc-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
    font-size: 14px;
}

.sabc-login-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
    text-align: center;
}

.sabc-form-group {
    margin-bottom: 20px;
}

.sabc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.sabc-form-group input[type="text"],
.sabc-form-group input[type="password"] {
    width:

.member-directory {
    max-width: 1200px;
    margin: 20px auto;
}

.member-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    max-width: 600px;
}

.member-list li {
    padding: 4px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.member-list li:hover {
    background: #f9f9f9;
}

.member-list a {
    color: #0073aa;
    text-decoration: none;
    font-size: 15px;
}

.member-list a:hover {
    color: #005177;
    text-decoration: underline;
}

.back-button {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 20px;
}

.back-button:hover {
    background: #005177;
    color: #fff;
}

.member-profile {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 25px;
    margin-top: 20px;
}

.profile-section {
    margin-bottom: 25px;
}

.profile-section h3 {
    color: #0073aa;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.profile-field {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-field:last-child {
    border-bottom: none;
}

.field-label {
    font-weight: bold;
    color: #333;
}

.field-value {
    color: #666;
}

.no-data {
    color: #999;
    font-style: italic;
}

.asset-list {
    list-style: none;
    padding: 0;
}

.asset-list li {
    padding: 8px;
    background: #f9f9f9;
    margin-bottom: 5px;
    border-radius: 3px;
}

/* ============================================================================
   Member Types Manager Styles
   ============================================================================ */

.member-types-manager {
    max-width: 1200px;
    margin: 20px auto;
}

.member-types-manager h2 {
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.form-section {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.form-section h3 {
    margin-top: 0;
    color: #0073aa;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    max-width: 500px;
    padding: 8px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

@supports (-webkit-touch-callout: none) {
    .member-profile .form-group input[type="text"],
    .member-profile .form-group input[type="number"],
    .member-profile .form-group input[type="email"],
    .member-profile .form-group input[type="date"],
    .member-profile .form-group input[type="tel"],
    .member-profile .form-group select {
        min-height: 40px;
        line-height: 1.2;
    }
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.form-group small {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.checkbox-label {
    font-weight: normal !important;
    display: inline !important;
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover {
    background: #005177;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* ============================================================================
   Tables
   ============================================================================ */

.types-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.types-table th {
    background: #0073aa;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.types-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.types-table tr:hover {
    background: #f5f5f5;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.action-buttons {
    white-space: nowrap;
}

.action-buttons form {
    display: inline-block;
    margin: 0;
}

.fee-display {
    font-weight: bold;
    color: #0073aa;
}

/* ============================================================================
   Hangar Management Styles
   ============================================================================ */

.hangar-management {
    max-width: 1200px;
    margin: 20px auto;
}

.hangar-stats {
    margin-bottom: 30px;
}

.hangar-stats h3 {
    color: #0073aa;
    margin-bottom: 15px;
}

/* ============================================================================
   Navigation Submenu Styling
   ============================================================================ */

/* Submenu styling - match main menu */
.wp-block-navigation .wp-block-navigation__submenu-container {
    background: #1EA0B3 !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    padding: 0 !important;
}

.wp-block-navigation .wp-block-navigation-submenu a {
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.wp-block-navigation .wp-block-navigation-submenu a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.wp-block-navigation .wp-block-navigation-submenu li:last-child a {
    border-bottom: none !important;
}

/* Also style the dropdown arrow */
.wp-block-navigation .wp-block-navigation__submenu-icon {
    color: #ffffff !important;
}

/* ============================================================================
   Member Directory Table Styles
   ============================================================================ */

.member-table-wrapper {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 20px;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.member-table thead {
    position: sticky;
    top: 0;
    background: #1083A9;
    z-index: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.member-table th {
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #0C5664;
}

.member-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.member-table tbody tr:hover {
    background: #f9f9f9;
}

.member-table a {
    color: #1083A9;
    text-decoration: none;
    font-weight: 500;
}

.member-table a:hover {
    color: #0C5664;
    text-decoration: underline;
}

/* Make table responsive on mobile */
@media (max-width: 768px) {
    .member-table-wrapper {
        max-height: 500px;
    }
    
    .member-table th,
    .member-table td {
        padding: 10px;
        font-size: 14px;
    }
}

/* Entry Content / Post Content Styling */
.entry-content,
.wp-block-post-content {
    line-height: 1.6;
    font-size: 16px;
}

.entry-content p,
.wp-block-post-content p {
    margin-bottom: 1.2em;
    line-height: 1.6;
}

/* Adjust specific spacing if needed */
.entry-content h1,
.entry-content h2,
.entry-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* Links in content */
.entry-content a {
    color: #0066cc;
    text-decoration: underline;
}

.entry-content a:hover {
    color: #0052a3;
}

/* FileBird Display Styling (Minutes and Newsletters) */
.sabc-filebird-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.sabc-filebird-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
    color: #333;
}

.sabc-filebird-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.sabc-filebird-list li {
    padding: 10px;
    margin: 5px 0;
    background: white;
    border-left: 3px solid #0066cc;
    border-radius: 3px;
    transition: all 0.3s;
}

.sabc-filebird-list li:hover {
    background: #f0f7ff;
    border-left-color: #0052a3;
}

.sabc-filebird-list a {
    color: #0066cc;
    text-decoration: none;
    display: block;
}

.sabc-filebird-list a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Force gap reduction with higher specificity */
nav.wp-block-navigation ul.wp-block-navigation__container.items-justified-space-between {
    gap: 0.6rem !important;
    justify-content: flex-start !important;
}

/* Alternative: target the outer nav element */
nav.wp-block-navigation.is-content-justification-space-between {
    justify-content: flex-start !important;
}

/* Ensure consistent spacing on menu items */
.wp-block-navigation .wp-block-navigation-item {
    margin: 0 !important;
}

.wp-block-navigation .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-submenu__toggle {
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
}

/* Change submenu from click to hover */
.wp-block-navigation__submenu-container {
    display: none;
}

.wp-block-navigation-item:hover .wp-block-navigation__submenu-container {
    display: flex;
}

/* Add visual separation with backdrop shadow */
.wp-block-navigation__submenu-container {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: rgba(0, 120, 160, 0.98) !important;
    backdrop-filter: blur(10px) !important;
}

/* Fade and blur background when submenu is displayed */
.wp-block-navigation .has-child:hover {
    position: relative;
}

.wp-block-navigation .has-child:hover::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 0;
    pointer-events: none;
}

.wp-block-navigation__submenu-container {
    position: relative;
    z-index: 2;
}


/* Disable click-to-open navigation behavior, use hover instead */
.wp-block-navigation .has-child.open-on-click .wp-block-navigation-submenu__toggle {
    display: none;
}

.wp-block-navigation .has-child.open-on-click:hover > .wp-block-navigation__submenu-container {
    display: block;
    visibility: visible;
    opacity: 1;
}

