/**
 * UTM Builder Styles
 * Custom styles for the UTM Builder tool
 */

/* Card styling */
.card {
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    padding: 1.25rem;
}

/* Form styling */
.form-label {
    font-weight: 500;
    color: #495057;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: #0d6efd;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button styling */
.btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.25);
}

.btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.25);
}

/* Generated URL section */
#generatedUrl {
    font-family: monospace;
    font-size: 1rem;
    padding: 1rem;
    border-radius: 0.75rem 0 0 0.75rem;
    border: 2px solid #e9ecef;
    background-color: #f8f9fa;
}

/* Copy button */
.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    transition: all 0.2s ease-in-out;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

/* Success state for copy button */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .card {
        margin-bottom: 1.5rem;
    }
    
    .form-floating > .form-control,
    .form-floating > .form-select {
        height: calc(3rem + 2px);
    }
    
    .btn-primary,
    .btn-outline-primary {
        padding: 0.5rem 1rem;
    }
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.alert i {
    font-size: 1.25rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Input group styling */
.input-group {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
    padding: 0.75rem 1.25rem;
}

/* Placeholder styling */
::placeholder {
    color: #adb5bd;
    opacity: 1;
}

/* Focus states */
.form-control:focus::placeholder {
    color: #6c757d;
}

/* Select dropdown styling */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    appearance: none;
}

/* Help Section */
.card-title {
    color: #0d6efd;
    font-weight: 600;
}

.text-primary {
    color: #0d6efd !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
} 