/* WhatsApp Link Generator Styles */

/* Header Gradient */
.header-gradient {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Phone Input Wrapper */
.phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.country-code-dropdown {
    flex-shrink: 0;
}

.country-code-dropdown .btn {
    height: 48px;
    min-width: 100px;
    border-radius: 10px;
    border: 2px solid #d1d5db;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1f2937;
}

.country-code-dropdown .btn:hover {
    border-color: #25D366;
    background-color: #f0fdf4;
}

.country-code-dropdown .btn:focus,
.country-code-dropdown .btn:active {
    border-color: #25D366;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    outline: none;
}

.flag-icon {
    font-size: 1.25rem;
}

.phone-input {
    flex: 1;
    height: 48px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: white;
    color: #1f2937;
}

.phone-input:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    outline: none;
}

.phone-input::placeholder {
    color: #9ca3af;
}

/* Message Input Wrapper */
.message-input-wrapper {
    position: relative;
}

.message-textarea {
    width: 100%;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
}

.message-textarea:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    outline: none;
}

.emoji-picker-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.emoji-picker-btn .btn {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.emoji-picker-btn .btn:hover {
    background: #f3f4f6;
    transform: scale(1.1);
}

/* Quick Emojis */
.quick-emojis {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 10px;
}

.emoji-quick-btn {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    min-height: 40px;
}

.emoji-quick-btn:hover {
    background: #25D366;
    border-color: #25D366;
    transform: scale(1.1);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    min-height: 48px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1EBE5A 0%, #0E7A6F 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-primary:focus {
    background: linear-gradient(135deg, #1EBE5A 0%, #0E7A6F 100%);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
    outline: none;
}

.btn-outline-primary {
    border: 2px solid #25D366;
    color: #25D366;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-height: 48px;
}

.btn-outline-primary:hover {
    background: #25D366;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-primary:focus {
    background: #25D366;
    color: white;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
    outline: none;
}

.btn-success {
    background: #25D366;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    min-height: 48px;
}

.btn-success:hover {
    background: #1EBE5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-success:focus {
    background: #1EBE5A;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
    outline: none;
}

.btn-outline-secondary {
    border: 2px solid #6b7280;
    color: #6b7280;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

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

.btn-outline-secondary:focus {
    background: #6b7280;
    color: white;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.3);
    outline: none;
}

/* WhatsApp Preview - Mobile Phone Mockup */
.whatsapp-preview {
    max-width: 280px;
    margin: 0 auto;
    background: #fff;
    border-radius: 30px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    height: 550px;
}

/* Phone Notch */
.whatsapp-preview:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 125px;
    height: 15px;
    background: #fff;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

/* Phone Screen */
.phone-screen {
    background: #e5ddd5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.chat-header {
    background: #075E54;
    color: white;
    padding: 1.5rem 0.7rem 0.7rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.chat-avatar i {
    font-size: 1.25rem;
    color: white;
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: 600;
    font-size: 1rem;
}

.chat-status {
    font-size: 0.875rem;
    opacity: 0.8;
}

.chat-body {
    padding: 2rem 1rem;
    min-height: 376px;
    background: #e5ddd5;
    background-image:
        linear-gradient(45deg, rgba(18, 140, 126, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(18, 140, 126, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(18, 140, 126, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(18, 140, 126, 0.03) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.message-bubble {
    background: #dcf8c6;
    border-radius: 8px;
    padding: 0.75rem;
    max-width: 90%;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-left: auto;
    animation: messageFadeIn 0.3s ease;
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.message-time {
    font-size: 0.75rem;
    color: #667781;
    text-align: right;
    margin-top: 0.25rem;
    margin-right: 0.5rem;
}

.chat-footer {
    background: #f0f2f5;
    padding: 0.75rem 1rem;
    border-top: 1px solid #d1d7db;
}

.chat-input-placeholder {
    background: white;
    border-radius: 20px;
    padding: 0.75rem 1rem;
    color: #667781;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
}

/* Result Card */
.result-card {
    border-left: 4px solid #25D366;
    animation: slideIn 0.3s ease;
}

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

/* Copy Button Feedback */
.copy-success {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Info List */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #4b5563;
}

.info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #25D366;
    font-weight: bold;
}

/* Dropdown Menu */
.dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 10px;
    border: 2px solid #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    color: #1f2937;
    font-weight: 500;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f0fdf4;
    color: #25D366;
}

.dropdown-item:active {
    background: #25D366;
    color: white;
}

.dropdown-item:focus {
    background: #f0fdf4;
    color: #25D366;
    outline: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-gradient h1 {
        font-size: 2rem;
    }

    .header-gradient p {
        font-size: 1rem;
    }

    .whatsapp-preview {
        max-width: 320px;
    }

    .chat-body {
        min-height: 23.62rem;
    }
}

@media (max-width: 768px) {
    .header-gradient {
        border-radius: 0 0 15px 15px;
    }

    .header-gradient h1 {
        font-size: 1.75rem;
    }

    .phone-input-wrapper {
        flex-direction: row;
    }

    .whatsapp-preview {
        max-width: 100%;
        margin-top: 1rem;
    }

    .message-bubble {
        max-width: 85%;
    }

    .chat-body {
        min-height: 23.62rem;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .glass-card {
        padding: 1rem !important;
    }

    .btn-lg {
        padding: 0.625rem 1.5rem;
        font-size: 0.9375rem;
    }

    .quick-emojis {
        justify-content: center;
    }

    .emoji-quick-btn {
        min-width: 36px;
        min-height: 36px;
        font-size: 1rem;
    }

    .country-code-dropdown .btn {
        min-width: 90px;
        padding: 0.5rem;
    }

    .whatsapp-preview {
        border-radius: 20px;
        padding: 8px;
    }

    .whatsapp-preview:before {
        height: 20px;
        width: 120px;
    }

    .phone-screen {
        border-radius: 15px;
    }

    .chat-body {
        min-height: 23.62rem;
        padding: 1rem 0.75rem;
    }

    .message-bubble {
        max-width: 90%;
        font-size: 0.9rem;
    }
}

/* Info Section */
.info-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
}

.info-section h2 {
    color: #1f2937;
    font-weight: 700;
}

.info-section p {
    color: #4b5563;
    line-height: 1.8;
}

/* Accordion Styles */
.accordion .card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion .card-header {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}

.accordion .card-header h5 {
    margin: 0;
}

.accordion .btn-link {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 1.25rem;
    display: block;
    width: 100%;
    text-align: left;
    position: relative;
    transition: all 0.2s ease;
}

.accordion .btn-link:hover {
    color: #25D366;
    text-decoration: none;
    background-color: #f0fdf4;
}

.accordion .btn-link:focus {
    text-decoration: none;
    box-shadow: none;
}

.accordion .btn-link::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.accordion .btn-link:not(.collapsed)::after {
    transform: translateY(-50%) rotate(180deg);
}

.accordion .card-body {
    padding: 1.25rem;
    background: white;
    color: #4b5563;
    line-height: 1.7;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #4b5563;
}

.info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #25D366;
    font-weight: bold;
}

/* Invalid State */
.phone-input.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

