/* DozeGear URL Shortener - Main Styles */
.dozegear-url-shortener-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Card Styles */
.dozegear-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dozegear-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.dozegear-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
}

.dozegear-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.dozegear-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
}

.dozegear-card-body {
    padding: 2.5rem;
}

/* Form Styles */
.dozegear-form {
    margin-bottom: 2rem;
}

.dozegear-form-group {
    margin-bottom: 1.75rem;
}

.dozegear-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dozegear-form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.dozegear-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dozegear-form-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    margin-left: 0.25rem;
}

.dozegear-input-with-prefix {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.dozegear-input-prefix {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-right: 2px solid #e0e0e0;
    color: #666;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.dozegear-input-with-prefix input {
    border: none;
    border-radius: 0;
    padding-left: 1rem;
}

.dozegear-input-with-prefix:focus-within {
    border-color: #667eea;
}

/* Button Styles */
.dozegear-button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.dozegear-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex: 1;
}

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

.dozegear-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.dozegear-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.dozegear-btn-secondary:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.dozegear-btn-copy {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    flex: 0 0 auto;
    padding: 0.875rem 1.5rem;
}

.dozegear-btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.3);
}

.dozegear-btn-copy.copied {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.dozegear-btn-test {
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    display: inline-flex;
    padding: 0.875rem 1.5rem;
}

.dozegear-btn-test:hover {
    background: #e9ecef;
    border-color: #ced4da;
    color: #333;
}

.dozegear-btn-new {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    padding: 0.875rem 1.5rem;
}

.dozegear-btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(250, 112, 154, 0.3);
}

/* Results Section */
.dozegear-results {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dozegear-success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    border: 1px solid #c3e6cb;
}

.dozegear-result-box {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #e9ecef;
}

.dozegear-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.dozegear-result-header h3 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
}

.dozegear-clicks {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: #667eea;
    border: 2px solid #e0e0e0;
}

.dozegear-result-url {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dozegear-url-input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dozegear-url-input:hover {
    border-color: #667eea;
}

.dozegear-result-actions {
    display: flex;
    gap: 1rem;
}

/* Error Message */
.dozegear-error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    border: 1px solid #f5c6cb;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Loading State */
.dozegear-loading {
    text-align: center;
    padding: 3rem;
}

.dozegear-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.dozegear-loading p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Footer */
.dozegear-card-footer {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 2px solid #e9ecef;
}

.dozegear-footer-note {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dozegear-card-header {
        padding: 2rem 1.5rem;
    }
    
    .dozegear-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dozegear-card-body {
        padding: 2rem 1.5rem;
    }
    
    .dozegear-button-group {
        flex-direction: column;
    }
    
    .dozegear-btn {
        width: 100%;
    }
    
    .dozegear-result-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .dozegear-result-url {
        flex-direction: column;
    }
    
    .dozegear-result-actions {
        flex-direction: column;
    }
    
    .dozegear-input-with-prefix {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dozegear-input-prefix {
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .dozegear-url-shortener-container {
        margin: 1rem auto;
        padding: 0 0.75rem;
    }
    
    .dozegear-card-header {
        padding: 1.5rem 1rem;
    }
    
    .dozegear-title {
        font-size: 1.75rem;
    }
    
    .dozegear-card-body {
        padding: 1.5rem 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dozegear-card {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .dozegear-form-group label {
        color: #e0e0e0;
    }
    
    .dozegear-form-group input {
        background: #2d2d2d;
        border-color: #444;
        color: #fff;
    }
    
    .dozegear-input-prefix {
        background: #252525;
        border-color: #444;
        color: #aaa;
    }
    
    .dozegear-result-box {
        background: #252525;
        border-color: #333;
    }
    
    .dozegear-url-input {
        background: #2d2d2d;
        border-color: #444;
        color: #fff;
    }
    
    .dozegear-clicks {
        background: #1a1a1a;
        border-color: #444;
        color: #667eea;
    }
    
    .dozegear-card-footer {
        background: #252525;
        border-color: #333;
    }
    
    .dozegear-footer-note {
        color: #aaa;
    }
    
    .dozegear-btn-secondary,
    .dozegear-btn-test {
        background: #2d2d2d;
        border-color: #444;
        color: #fff;
    }
    
    .dozegear-btn-secondary:hover,
    .dozegear-btn-test:hover {
        background: #333;
        border-color: #555;
    }
}