/* ========================================
   COMPONENT STYLES
   Buttons, Modals, Badges, Cards, Forms
   ======================================== */

/* Buttons */
.icon-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #24A1DE;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1C7DAD;
}

.btn-secondary {
    background: #2a2a2a;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #3a3a3a;
}

.btn-sm {
    padding: 6px 12px !important;
    font-size: 12px !important;
}

.btn-link {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-link:hover {
    color: #24A1DE;
}

.btn-link i.fa-spin {
    animation: spin 1s linear infinite;
}

.action-btn {
    background: none;
    border: 1px solid #4a4a4a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: #24A1DE;
    color: #24A1DE;
}

.report-btn {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.report-btn:hover {
    background: #dc2626;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
    padding: 20px;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #0a0a0a;
    border-radius: 16px;
    max-width: 90%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #2a2a2a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #2a2a2a;
}

.close-modal {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #ffffff;
}

/* Disconnect Modal Specific Styles */
#disconnectModal .modal-content {
    max-width: 400px;
}

#confirmDisconnect {
    background: #ef4444 !important;
    color: white !important;
    border: none;
    transition: all 0.2s ease;
}

#confirmDisconnect:hover {
    background: #dc2626 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

#cancelDisconnect:hover {
    background: #2a2a2a !important;
}

/* Enhanced Modal Styling */
.modal-content.verified-asset-modal {
    border: 2px solid #10b981;
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge.trial {
    background: #f59e0b;
    color: #ffffff;
}

.badge.active {
    background: #10b981;
    color: #ffffff;
}

.badge.bronze {
    background: #cd7f32;
    color: #ffffff;
}

.badge.silver {
    background: #c0c0c0;
    color: #000000;
}

.badge.diamond {
    background: #b9f2ff;
    color: #000000;
}

.verified-badge {
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    margin-left: auto;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.authenticity-badge {
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto 16px auto;
    text-align: center;
    justify-content: center;
}

.reputation-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.reputation-badge.excellent {
    background: #10b981;
    color: #ffffff;
}

.reputation-badge.good {
    background: #3b82f6;
    color: #ffffff;
}

.reputation-badge.caution {
    background: #f59e0b;
    color: #ffffff;
}

.reputation-badge.poor {
    background: #ef4444;
    color: #ffffff;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: #24A1DE #2a2a2a;
}

.filter-tabs::-webkit-scrollbar {
    height: 4px;
}

.filter-tabs::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 2px;
}

.filter-tabs::-webkit-scrollbar-thumb {
    background: #24A1DE;
    border-radius: 2px;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-tab.active {
    background: #24A1DE;
    color: #ffffff;
}

.filter-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

/* Status Indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.available {
    background: #10b981;
}

.status-dot.rented {
    background: #ef4444;
}

.status-dot.owned {
    background: #24A1DE;
}

.status-dot.pending {
    background: #f59e0b;
}

.status-dot.unknown {
    background: #888;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.page-btn {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    border-color: #24A1DE;
    color: #24A1DE;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-number {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    min-width: 30px;
    text-align: center;
}

/* Progress Bar */
.progress-bar {
    flex: 1;
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #24A1DE;
    transition: width 0.3s;
}

