/* IP Lookup Tool - DozeGear - Main Stylesheet */

/* Reset and Base Styles */
.dg-ip-lookup-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    color: #333;
    box-sizing: border-box;
}

.dg-ip-lookup-container * {
    box-sizing: border-box;
}

/* Header Styles */
.dg-ip-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dg-ip-title {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.dg-ip-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

/* Input Section */
.dg-ip-input-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
}

.dg-ip-input-group {
    margin-bottom: 25px;
}

.dg-ip-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #444;
}

.dg-ip-input-group label i {
    margin-right: 10px;
    color: #667eea;
}

.dg-ip-input-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.dg-ip-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    outline: none;
    background: #fafafa;
}

.dg-ip-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dg-ip-hint {
    font-size: 0.9rem;
    color: #666;
    margin: 8px 0 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dg-ip-hint i {
    color: #667eea;
}

/* Button Styles */
.dg-ip-button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.dg-ip-btn {
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    min-width: 180px;
}

.dg-ip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dg-ip-btn:active {
    transform: translateY(0);
}

.dg-ip-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    white-space: nowrap;
}

.dg-ip-btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4090 100%);
}

.dg-ip-btn-secondary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.dg-ip-btn-secondary:hover {
    background: linear-gradient(135deg, #3d9bf0 0%, #00d9e6 100%);
}

.dg-ip-btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.dg-ip-btn-danger:hover {
    background: linear-gradient(135deg, #e085ed 0%, #e34c62 100%);
}

.dg-ip-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Result Section */
.dg-ip-result-section {
    position: relative;
    min-height: 300px;
}

.dg-ip-loading {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.dg-ip-loading.active {
    display: block;
}

.dg-ip-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: dg-ip-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes dg-ip-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dg-ip-error {
    display: none;
    padding: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.2);
}

.dg-ip-error.active {
    display: block;
    animation: dg-ip-fadeIn 0.5s ease;
}

@keyframes dg-ip-fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dg-ip-result-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.dg-ip-result-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.dg-ip-result-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dg-ip-result-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dg-ip-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Result Grid */
.dg-ip-result-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dg-ip-result-row {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.dg-ip-result-row:hover {
    background: #eef2ff;
    transform: translateX(5px);
}

.dg-ip-result-label {
    flex: 1;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.dg-ip-result-label i {
    color: #667eea;
    width: 20px;
    text-align: center;
}

.dg-ip-result-value {
    flex: 1;
    font-weight: 600;
    color: #222;
    font-size: 1.05rem;
    text-align: right;
    word-break: break-word;
}

.dg-ip-result-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.dg-ip-timestamp {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dg-ip-timestamp i {
    color: #667eea;
}

.dg-ip-provider {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.dg-ip-provider a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.dg-ip-provider a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dg-ip-lookup-container {
        padding: 15px;
    }
    
    .dg-ip-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .dg-ip-input-wrapper {
        flex-direction: column;
    }
    
    .dg-ip-btn {
        min-width: 100%;
    }
    
    .dg-ip-button-group {
        flex-direction: column;
    }
    
    .dg-ip-result-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .dg-ip-result-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .dg-ip-result-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .dg-ip-result-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .dg-ip-header {
        padding: 20px 15px;
    }
    
    .dg-ip-title {
        font-size: 1.7rem;
    }
    
    .dg-ip-subtitle {
        font-size: 1rem;
    }
    
    .dg-ip-input-section {
        padding: 20px;
    }
    
    .dg-ip-result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .dg-ip-result-value {
        text-align: left;
        width: 100%;
    }
}

/* Animation for result updates */
.dg-ip-result-value.updated {
    animation: dg-ip-highlight 0.6s ease;
}

@keyframes dg-ip-highlight {
    0% { background-color: transparent; }
    50% { background-color: rgba(102, 126, 234, 0.2); }
    100% { background-color: transparent; }
}