/* Custom Styles for CC Checker Pro */

/* Navigation */
.nav-link {
    color: #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: #374151;
    color: white;
}

.nav-link-mobile {
    color: #d1d5db;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
}

.nav-link-mobile:hover {
    background-color: #374151;
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

/* Cards */
.card {
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    transition: all 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background-color: #1f2937;
}

::-webkit-scrollbar-thumb {
    background-color: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #6b7280;
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid #9333ea;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gradient Text */
.gradient-text {
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(to right, #a855f7, #ec4899);
}

/* Glass Effect */
.glass {
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alert Animations */
.alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Table Styles */
.table th {
    color: #d1d5db;
    font-weight: 600;
}

.table td {
    color: #9ca3af;
}

/* Form Controls */
.input:focus,
.textarea:focus,
.select:focus {
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.5);
    outline: none;
}

/* Badge Variants */
.badge-live {
    background-color: #10b981;
    color: white;
}

.badge-dead {
    background-color: #ef4444;
    color: white;
}

.badge-unknown {
    background-color: #f59e0b;
    color: black;
}

/* Responsive Grid */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Custom Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    position: absolute;
    z-index: 10;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: white;
    background-color: #111827;
    border-radius: 0.5rem;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Progress Bar */
.progress {
    background-color: #374151;
}

.progress::-webkit-progress-bar {
    background-color: #374151;
    border-radius: 4px;
}

.progress::-webkit-progress-value {
    background-image: linear-gradient(to right, #a855f7, #ec4899);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Dropdown */
.dropdown-content {
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s;
}

.dropdown.dropdown-open .dropdown-content,
.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
}

/* Code Block */
.code-block {
    background-color: #111827;
    color: #d1d5db;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: monospace;
    font-size: 0.875rem;
    overflow-x: auto;
}

/* Status Indicators */
.status-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-indicator.online {
    background-color: #10b981;
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background-color: #6b7280;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #111827;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
}
