/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
} */

      .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background:linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.1);
}

header h1 {
  font-size: 45px !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem;
	    color: white !important;
/*     font-family: inherit; */
	}

 header p {
            font-size: 1.1rem;
            opacity: 0.9;
        }

/* .title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B9D, #C44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(255, 107, 157, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
} */

/* Main content card */
.main-content {
    display: flex;
    justify-content: center;
}
.elementor-element svg {
	fill:white !important;
}
.converter-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 20px !important;
    padding: 40px;
    box-shadow: 0 20px 40px rgb(0 0 0 / 10%) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 157, 0.1) !important;
    width: 100%;
/*     max-width: 900px; */
}

/* Controls section */
.controls {
    margin-bottom: 30px;
}

.dropdown-group {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.dropdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dropdown-container label {
    font-weight: 600;
    color: #C44569 !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown {
    padding: 12px 16px !important;
    border: 2px solid #FFB6C1 !important;
    border-radius: 12px;
    background: white !important;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    outline: none;
}

.dropdown:hover {
    border-color: #FF6B9D !important;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

.dropdown:focus {
    border-color: #C44569;
    box-shadow: 0 0 0 3px rgba(196, 69, 105, 0.2);
}

.swap-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.swap-btn {
    background:linear-gradient(219deg, #FB0E76 0%, #910694 100%);
    border: none !important;
    border-radius: 50% !important;
    width: 54px;
    height: 54px;
    color: white !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
	padding:14px !important;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.swap-btn:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.btn {
    padding: 14px 32px !important;
    border: none !important;
    border-radius: 12px !important; 
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    outline: none !important;
}

.btn-primary {
     background:linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4) !important;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white !important;
    color: #C44569 !important;
    border: 2px solid #FFB6C1 !important;
}

.btn-secondary:hover {
    background: #FFB6C1 !important;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
}

/* Textarea container */
.textarea-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
}

.input-section, .output-section {
    display: flex;
    flex-direction: column;
}

.textarea-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.textarea-header label {
    font-weight: 600;
    color: #C44569 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-controls {
    display: flex;
    gap: 8px;
}

.output-controls {
    display: flex;
    gap: 8px;
}

.btn-small {
    background: white !important;
    border: 2px solid #FFB6C1 !important;
    border-radius: 8px !important;
    padding: 8px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #C44569 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-small:hover {
    background: #FFB6C1 !important;
    color: white !important;
    transform: translateY(-1px);
}

.textarea {
    width: 100%;
    padding: 16px !important;
    border: 2px solid #FFB6C1 !important;
    border-radius: 12px !important;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    outline: none !important;
}

.textarea:focus {
    border-color: #FF6B9D !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1) !important;
    background: white;
}

.textarea::placeholder {
    color: #999;
}

.textarea[readonly] {
    background: #f8f9fa;
    color: #333;
}

/* Alert and notification styles */
.alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: all 0.3s ease;
}

.alert.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
    pointer-events: none;
}

.alert-content {
    background: white;
    border: 2px solid #FF6B9D;
    border-radius: 12px !important;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.2);
    max-width: 400px;
}

.alert-icon {
    font-size: 1.2rem;
}

.alert-message {
    color: #C44569;
    font-weight: 500;
    flex: 1;
}

.alert-close {
    background: none !important;
    border: none !important;
    font-size: 1.5rem;
    color: #C44569 !important;
    cursor: pointer;
    padding: 0;
    width: 24px !important;
    height: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close:hover {
    background: #FFB6C1;
    border-radius: 50%;
    color: white;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background:linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.notification-message {
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0px;
    }

    h1 {
        font-size: 35px !important;
    }

    .converter-card {
        padding: 25px;
        border-radius: 15px;
    }

    .dropdown-group {
        flex-direction: column;
        gap: 15px;
    }

    .textarea-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .swap-section {
        order: 2;
        padding: 15px 0;
    }

    .input-section {
        order: 1;
        margin-bottom: 10px;
    }

    .output-section {
        order: 3;
        margin-top: 10px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }

    .alert-content {
        margin: 0 20px;
        max-width: calc(100vw - 40px);
    }

    .notification {
        right: 15px;
        bottom: 15px;
        left: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .converter-card {
        padding: 20px;
    }

    .textarea {
        font-size: 0.9rem;
    }

    .dropdown {
        min-width: 120px;
        font-size: 0.9rem;
    }

    .swap-btn {
        width: 45px;
        height: 45px;
    }
}

/* Loading state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.dropdown:focus,
.textarea:focus,
.btn-small:focus {
    outline: 2px solid #C44569;
    outline-offset: 2px;
}

/* Animation for successful conversion */
@keyframes success-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 157, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0); }
}

.textarea.success {
    animation: success-pulse 0.6s ease-out;
}