:root {
    --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --secondary-gradient: linear-gradient(135deg, #ff6b6b 0%, #ffa502 100%);
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.2);
}

body {
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header {
    text-align: center;
    padding: 40px 0 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header h1 {
    font-weight: 800;
    font-size: 3.2rem;
    letter-spacing: 1px;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 15px auto 0;
}

.logo {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 25px;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    border-bottom: 1px solid var(--card-border);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.4rem;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-gradient);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: var(--secondary-gradient);
}
.btn-clear {
    background: linear-gradient(45deg, #3498db, #8e44ad);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-clear:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.btn-outline-light {
    border-radius: 50px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
}

/*.form-control, .form-control:focus {*/
/*    background: rgba(0, 0, 0, 0.2);*/
/*    border: 1px solid var(--card-border);*/
/*    color: #fff;*/
/*    border-radius: 15px;*/
/*    padding: 15px;*/
/*    box-shadow: none;*/
/*    min-height: 120px;*/
/*}*/

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.result-container {
    position: relative;
    margin-top: 20px;
}

.result-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    min-height: 150px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    word-break: break-word;
    overflow: auto;
}

.morse-code {
    font-family: monospace;
    font-size: 1.4rem;
    letter-spacing: 3px;
    line-height: 1.8;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    /*background: rgba(255, 255, 255, 0.15);*/
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    /*color: white;*/
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    transform: scale(1.1);
}

.footer {
    text-align: center;
    padding: 30px 0 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-top: 20px;
}

.instructions {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--card-border);
}

.instructions h3 {
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.instructions h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-gradient);
    border-radius: 3px;
}

.instructions ul {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.table-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid var(--card-border);
    overflow: hidden;
}
.badge {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 50px;
    margin: 5px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    .logo {
        font-size: 3rem;
    }
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    .btn {
        width: 100%;
    }
}