/* URL Shortener Styles - Matched with QR Code Generator */
.jq-shortener-container {
    background: linear-gradient(135deg, #1a1a24 0%, #4d5667 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #fff;
    box-sizing: border-box;
}

.jq-shortener-container * {
    box-sizing: border-box;
}

.jq-shortener-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.jq-shortener-title {
    font-size: 32px !important;
    font-weight: 500 !important;
    margin: 0 0 16px 0 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px;
}

.jq-shortener-intro {
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.6 !important;
}

.jq-shortener-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.jq-shortener-features li {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.jq-shortener-features li:last-child {
    margin-bottom: 0;
}

.jq-shortener-features svg {
    flex-shrink: 0;
    margin-right: 12px;
}

/* Input group matching QR code generator horizontal group */
.jq-shortener-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.jq-shortener-input {
    flex: 1;
    background-color: #1a1a24;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    color: #ffffff !important;
    font-size: 16px;
    outline: none;
    width: 100%;
}

.jq-shortener-input::placeholder {
    color: #888;
}

/* Submit button matching QR code arrow submit */
.jq-shortener-btn--submit {
    background-color: #fff;
    color: #1a1a24;
    border: none;
    border-radius: 8px;
    padding: 0 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.jq-shortener-btn--submit:hover {
    background-color: #e0e0e0;
}

.jq-shortener-btn--submit:active {
    transform: scale(0.98);
}

.jq-shortener-btn--submit:disabled {
    background-color: rgba(255, 255, 255, 0.3);
    color: rgba(26, 26, 36, 0.6);
    cursor: not-allowed;
    transform: none;
}

.jq-shortener-btn--submit svg {
    transition: transform 0.2s;
}

.jq-shortener-btn--submit:disabled svg.jq-pulse-icon {
    animation: jqPulseSpinner 1.2s infinite linear;
}

@keyframes jqPulseSpinner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Reset button matching QR code reset */
.jq-shortener-btn--reset {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, color 0.2s;
    margin-top: 12px;
}

.jq-shortener-btn--reset:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Right Column and Canvas Wrapper matching QR code canvas */
.jq-shortener-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.jq-shortener-canvas-wrapper {
    background-color: #fff;
    padding: 24px;
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 1; /* Keep it square matching QR code wrapper */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.jq-shortener-canvas-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Result Idle State inside white wrapper */
.jq-shortener-idle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.jq-shortener-idle-graphic {
    color: #6366f1; /* Indigo color matching QR code icon */
    background-color: rgba(99, 102, 241, 0.1);
    padding: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.jq-pulse-icon {
    animation: jqPulseIdle 2s infinite ease-in-out;
}

@keyframes jqPulseIdle {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); opacity: 0.8; }
    100% { transform: scale(1); }
}

.jq-shortener-idle-wrapper h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1a1a24 !important;
    margin: 0 0 10px 0 !important;
}

.jq-shortener-idle-wrapper p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #71717a !important;
    margin: 0 !important;
    max-width: 250px;
}

/* Result Active State inside white wrapper */
.jq-shortener-active-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 10px;
}

.jq-shortener-success-badge {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.jq-shortener-success-badge svg {
    flex-shrink: 0;
}

.jq-shortener-result-box {
    background-color: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.jq-shortener-result-box:focus-within {
    border-color: #6366f1;
}

.jq-shortener-result-input {
    border: none !important;
    background: transparent !important;
    color: #1a1a24 !important;
    font-size: 15px !important;
    font-weight: 500;
    padding: 14px 16px !important;
    width: 100%;
    text-align: center;
    outline: none !important;
}

.jq-shortener-btn--open {
    background-color: rgba(99, 102, 241, 0.08);
    color: #6366f1 !important;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    transition: background-color 0.2s, transform 0.1s;
    width: 100%;
}

.jq-shortener-btn--open:hover {
    background-color: rgba(99, 102, 241, 0.14);
}

.jq-shortener-btn--open:active {
    transform: scale(0.98);
}

/* Primary Copy Button matching QR download button exactly in color and placement */
.jq-shortener-btn--copy {
    background-color: #b2ffff; /* Aqua/cyan accent */
    color: #1a1a24;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 24px;
    text-align: center;
}

.jq-shortener-btn--copy:hover {
    background-color: #6eb7b5;
}

.jq-shortener-btn--copy:active {
    transform: scale(0.98);
}

/* Message boxes matching QR generator exactly */
.jq-shortener-message {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.jq-shortener-message--error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.jq-shortener-message--warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Legal Disclaimer */
.jq-shortener-disclaimer {
    margin-top: 24px;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.jq-shortener-disclaimer p {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.45) !important;
    margin: 0 !important;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    .jq-shortener-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 24px;
    }
}
