/* Variabel Warna */
:root {
    --primary: #FF5722;
    --secondary: #E91E63;
    --accent: #FF9800;
    --text: #FFFFFF;
    --bg: #121212;
    --card: rgba(30, 30, 30, 0.9);
    --border: #FF5722;
    --success: #4CAF50;
    --error: #F44336;
    --warning: #FFC107;
    --shadow: 0 4px 20px rgba(255, 87, 34, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --card-header-text: #1A1A1A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: var(--transition);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    padding: 15px;
    min-height: 100vh;
    background-image: url('https://cdn.areabermain.club/assets/cdn/az6/2025/04/01/20250401/5dc9d083e18085eef7c0cd7fcf52bd46/linetogel-bg-new.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 15px;
}

.card {
    background-color: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 2px solid var(--border);
    position: relative;
    backdrop-filter: blur(5px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.card-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--card-header-text);
    text-align: center;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.logo-container {
    margin-bottom: 10px;
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.logo {
    height: 160px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
    transition: filter 0.3s ease;
    object-fit: contain;
}

.logo:hover {
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.6));
}

.card-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--card-header-text);
    opacity: 0.9;
    margin-bottom: 0;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 87, 34, 0.3);
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.input-section, .result-section {
    margin-bottom: 20px;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--border);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    resize: vertical;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text);
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.3);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    transition: all 0.3s ease;
}

.clear-btn {
    background-color: var(--error);
    color: white;
}

.clear-btn:hover {
    background-color: #D32F2F;
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(244, 67, 54, 0.5);
}

.process-btn {
    background-color: var(--success);
    color: white;
}

.process-btn:hover {
    background-color: #388E3C;
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.5);
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 10px;
}

.result-item {
    display: flex;
    align-items: flex-start;
    padding: 14px;
    border-radius: 8px;
    background-color: rgba(255, 87, 34, 0.15);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.result-item:hover {
    background-color: rgba(255, 87, 34, 0.25);
    transform: translateY(-2px);
}

.result-item.link-item {
    display: grid;
    grid-template-columns: 160px 1fr 36px;
    gap: 12px;
    background-color: rgba(255, 87, 34, 0.2);
    border-left: 3px solid var(--accent);
    align-items: flex-start;
}

.result-label {
    font-weight: 600;
    min-width: 140px;
    color: var(--primary);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    padding-top: 2px;
}

.result-value {
    flex-grow: 1;
    margin: 0 10px;
    word-break: break-all;
    font-size: 13px;
    text-align: left;
    line-height: 1.5;
}

.result-item.link-item .result-value {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    min-width: 0;
    margin: 0;
    word-break: break-all;
}

.btn-copy {
    background-color: var(--primary);
    color: var(--card-header-text);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.5);
}

.btn-copy.copied {
    background-color: var(--success);
    color: white;
}

.additional-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    margin: 20px 0 0;
    padding: 0;
}

.additional-logo {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.additional-logo:hover {
    transform: scale(1.05);
}

/* Style khusus untuk link multi-baris */
.link-line {
    display: block;
    margin-bottom: 4px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255, 152, 0, 0.3);
}

.link-line:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

/* Animasi loading */
.processing-dots span {
    animation: blink 1.4s infinite;
    display: inline-block;
    min-width: 4px;
}

.processing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.processing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Notifikasi */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    background-color: var(--success);
    color: white;
    box-shadow: var(--shadow);
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background-color: var(--error);
}

/* Responsif untuk mobile */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .logo {
        height: 90px;
    }
    
    .card-header h1 {
        font-size: 1.4rem;
    }
    
    .result-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .result-item.link-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .result-label {
        min-width: auto;
        align-items: flex-start;
    }
    
    .result-value {
        margin: 0;
        width: 100%;
    }
    
    .btn-copy {
        align-self: flex-end;
        margin-top: 8px;
    }
    
    .additional-logo-container {
        height: 40px;
    }
    
    .additional-logo {
        height: 35px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}