/* 
========================================
OSEAN MEMBER LOG - EXTERNAL STYLES
========================================
File ini berisi styling yang tidak perlu sering diubah
Untuk pengaturan jarak dan konfigurasi penting, lihat index.php
========================================
*/

/* Modern Glassmorphism Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    z-index: -1;
}

.navbar .container {
    position: relative;
    z-index: 1;
}

.navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    filter: brightness(1.1);
}

.navbar-nav .nav-link {
    color: rgba(9, 133, 190, 0.95) !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: var(--transition);
    margin: 0 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.navbar-nav .nav-link:active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(0);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Desktop Navbar Collapse - Horizontal Layout */
.navbar-collapse {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.navbar-nav {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-nav:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Table Header Controls */
.table-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Modern Search Input */
.search-container {
    position: relative;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
}

/* Modern Select */
.length-select {
    padding: 0.625rem 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
    min-width: 90px;
    transition: var(--transition);
}

.length-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Stats Badge */
.stats-badge {
    background: var(--background);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Modern Table */
.modern-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #374151;
    font-weight: 600;
    padding: 1rem;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.9rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modern-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.modern-table tbody tr {
    transition: var(--transition);
}

.modern-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* Column Widths */
.col-no { width: 80px; text-align: center; }
.col-nick { min-width: 150px; }
.col-position { min-width: 120px; }
.col-game { min-width: 150px; }
.col-guild { min-width: 120px; }
.col-note { min-width: 200px; }

/* Modern Pagination */
.table-footer {
    background: #f8fafc;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Modern Pagination Design */
.pagination-container {
    display: flex !important;
    gap: 0.375rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 44px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 0.875rem;
    min-width: 44px;
    height: 44px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #374151;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.page-btn:hover::before {
    left: 100%;
}

.page-btn:hover:not(.disabled):not(.ellipsis) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    color: #9ca3af;
    border-color: #f1f5f9;
}

.page-btn.ellipsis {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: default;
    box-shadow: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.page-btn.ellipsis:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Navigation Buttons */
.page-btn.nav-btn {
    min-width: 52px;
    font-weight: 600;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-color: #cbd5e1;
    color: #475569;
}

.page-btn.nav-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
}

.page-btn.nav-btn i {
    font-size: 0.8rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Styling */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Table borders */
.table {
    border: 1px solid #dee2e6;
}

.table th, .table td {
    border: 1px solid #dee2e6;
}

/* Mobile Navbar Collapse - Dropdown Style */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        left: auto;
        width: 280px;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(30px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 16px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
        padding: 1.5rem;
        margin: 0;
        z-index: 1050;
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .navbar-collapse.show {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: all;
    }

    .navbar-collapse.collapsing {
        opacity: 0.5;
        transform: translateY(-5px) scale(0.98);
    }

    .navbar-nav {
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
        width: 100%;
    }

    .navbar-nav .nav-link {
        width: 100%;
        text-align: left;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    }
}

/* Navbar Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
        gap: 0.5rem;
    }

    .navbar-brand img {
        height: 32px;
    }

    .navbar-toggler {
        padding: 0.375rem;
        border-radius: 6px;
    }

    .navbar-toggler-icon {
        width: 20px;
        height: 20px;
    }

    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.45rem 0.875rem;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
        gap: 0.375rem;
    }

    .navbar-brand img {
        height: 28px;
    }

    .navbar-toggler {
        padding: 0.3rem;
        border-radius: 5px;
    }

    .navbar-toggler-icon {
        width: 18px;
        height: 18px;
    }

    .navbar-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.375rem 0.625rem;
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.35);
        border-color: rgba(255, 255, 255, 0.55);
    }
}

@media (max-width: 360px) {
    .navbar {
        padding: 0.4rem 0;
    }

    .navbar-brand {
        font-size: 1rem;
        gap: 0.3rem;
    }

    .navbar-brand img {
        height: 24px;
    }

    .navbar-toggler {
        padding: 0.25rem;
        border-radius: 4px;
    }

    .navbar-toggler-icon {
        width: 16px;
        height: 16px;
    }

    .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 6px;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.4);
        border-color: rgba(255, 255, 255, 0.6);
    }
}
