@import "global.css";
@import "glass.css";


/* ==================== Utility ==================== */
.cursor-pointer {
    cursor: pointer;
}

/* ==================== Animations ==================== */

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab, #f093fb, #4facfe);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
    font-weight: 700;
}

@keyframes gradient-shift {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

/* ==================== Cards ==================== */

/* Super card with hover and active states */
.super-card {
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.super-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 6px 14px rgba(0, 0, 0, 0.08) !important;
}

.super-card:active {
    transform: translateY(-3px) scale(1.01);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Active card state (for server running) */
.super-card-active {
    border: 2px solid #c10015 !important;
    box-shadow: 0 4px 20px rgba(193, 0, 21, 0.15) !important;
}

.super-card-active:hover {
    box-shadow: 0 12px 32px rgba(193, 0, 21, 0.25) !important;
}

/* Button press */
.press-button:active {
    transform: scale(0.95);
}

/* Icon rotate on hover */
.rotate-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.super-card:hover .rotate-icon {
    transform: rotate(8deg) scale(1.15);
}

/* Pure white background */
.bg-white {
    background: #ffffff !important;
    padding: 40px 60px !important;
    margin: 0 !important;
    margin-top: 120px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    min-height: auto !important;
    height: auto !important;
}

/* ==================== Buttons (dashboard 特有) ==================== */

/* Header buttons */
.header-btn {
    border-radius: 8px !important;
    min-width: 100px !important;
    height: 40px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.header-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px);
}

.export-btn {
    background: white !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

.export-btn:hover {
    border-color: #9ca3af !important;
}

/* Action buttons */
.action-btn {
    transition: all 0.2s ease !important;
    border-radius: 8px !important;
    min-width: 70px !important;
    height: 32px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.btn-primary {
    background: #3b82f6 !important;
    color: white !important;
    border: none !important;
}

.btn-secondary {
    background: white !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

.btn-secondary:hover {
    border-color: #9ca3af !important;
}

/* Delete button */
.btn-delete {
    background: white !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    color: #6b7280 !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    transition: all 0.2s ease !important;
}

.btn-delete:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.btn-delete .q-btn__content {
    min-width: unset !important;
    width: 100% !important;
    padding: 0 !important;
}

.press-button {
    background: transparent !important;
    box-shadow: none !important;
}

.press-button:active {
    transform: scale(0.95);
}

/* Button layout */
.button-layout {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: auto !important;
    gap: 16px !important;
}

.right-buttons {
    display: flex !important;
    gap: 12px !important;
}

/* ==================== Status Badges ==================== */

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-in-progress {
    background: #fef3c7;
    color: #92400e;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* ==================== Empty State ==================== */

.empty-state {
    background: transparent;
    border: none;
    padding: 80px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* Empty state button */
.empty-state .q-btn {
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-width: 140px !important;
    height: 48px !important;
    text-transform: none !important;
}

.empty-state .q-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.25) !important;
}

.empty-state .q-btn:active {
    transform: translateY(0);
}

/* ==================== Dialog ==================== */

.dialog-card {
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Info box */
.info-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.export-summary-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 12px 0;
}

/* Info field */
.info-field {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ==================== Responsive ==================== */

@media (max-width: 1400px) {
    .bg-white {
        padding: 40px 60px !important;
    }

    .px-6 {
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
    }
}

@media (max-width: 1024px) {
    .bg-white {
        padding: 30px 40px !important;
    }

    .px-6 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* ==================== WiFi Indicator ==================== */

.wifi-indicator-btn {
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    background: transparent !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wifi-indicator-btn:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

.wifi-indicator-btn:active {
    background: rgba(0, 0, 0, 0.08) !important;
    transform: scale(0.95);
}

/* WiFi Dialog */
.wifi-dialog-card {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Networks container - scrollable but hide scrollbar */
.wifi-dialog-card .q-scrollarea__thumb {
    display: none !important;
}

/* Alternative: hide native scrollbar */
.wifi-dialog-card *::-webkit-scrollbar {
    display: none !important;
}

.wifi-dialog-card * {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* Current Connection Card - Clean, no border, no background */
.wifi-current-card {
    background: transparent !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.wifi-current-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Network Cards - No border, shadow on hover */
.wifi-network-card {
    border-radius: 12px !important;
    padding: 14px !important;
    transition: all 0.2s ease !important;
    background: white !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.wifi-network-card:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15) !important;
    transform: translateY(-2px);
}

/* Connect Form - Compact, single row height */
.wifi-connect-form {
    background: rgba(248, 249, 250, 0.6) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                padding 0.3s ease !important;
}

/* Input row - force input to take remaining space */
.wifi-connect-form .q-field {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Connect Button - Fixed width, always on the right */
.wifi-connect-btn {
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    transition: all 0.2s ease !important;
    background: white !important;
    border: none !important;
    color: #3b82f6 !important;
    box-shadow: none !important;
    flex-shrink: 0 ! important;
    margin-left: auto !important;
}

.wifi-connect-btn:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    transform: scale(1.1);
}

.wifi-connect-btn:active {
    transform: scale(0.95);
}

/* Scan Button */
.wifi-scan-btn {
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wifi-scan-btn:hover {
    transform: rotate(180deg) scale(1.1);
}
