/* Custom Styles */
.ip-address-container {
    position: relative;
    overflow: hidden;
}

.ip-address-container::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;
}

.ip-address-container:hover::before {
    left: 100%;
}

/* Toast Animation */
.toast-show {
    transform: translateX(0) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive font sizes */
@media (max-width: 768px) {
    .ip-address-container span {
        font-size: 1.5rem !important;
    }
}

/* Loading animation */
.loading {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* IPv4 and IPv6 specific colors */
.ipv4-border {
    border-color: #3B82F6;
}

.ipv6-border {
    border-color: #8B5CF6;
}

/* Hover effects */
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Copy button styling */
.copy-button {
    transition: all 0.3s ease;
}

.copy-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Error state */
.error-state {
    background-color: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
}

/* Success state */
.success-state {
    background-color: #F0FDF4;
    border-color: #BBF7D0;
    color: #16A34A;
}

/* Info box styling */
.info-box {
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 640px) {
    .ip-address-container {
        padding: 1rem !important;
    }
    
    .ip-address-container span {
        font-size: 1.25rem !important;
        line-height: 1.4;
    }
}

/* Focus states for accessibility */
.ip-address-container:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .ip-address-container {
        background: white !important;
        color: black !important;
        border: 2px solid #000;
    }
    
    .bg-gray-50 {
        background: white !important;
    }
    
    .shadow-lg, .shadow-md {
        box-shadow: none !important;
        border: 1px solid #000;
    }
}