:root {
    --primary-color: #3d5a80;
    --primary-dark: #2c4162;
    --secondary-color: #ee6c4d;
    --light-color: #e0fbfc;
    --dark-color: #293241;
    --gray-color: #98c1d9;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
    padding-bottom: 60px;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--gray-color);
    font-size: 1rem;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 90, 128, 0.2);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    width: 100%;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.primary-btn:active {
    transform: translateY(0);
}

.output-section {
    display: none;
}

.output-card {
    min-height: 400px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background-color: var(--light-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background-color: var(--gray-color);
    transform: translateY(-2px);
}

#reset-btn {
    background-color: var(--gray-color);
}

#reset-btn:hover {
    background-color: var(--secondary-color);
}

.script-content {
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    padding: 1rem;
    background-color: #fcfcfc;
    border-radius: 4px;
    border: 1px solid #eee;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    position: relative;
}

.placeholder-text {
    color: #999;
    text-align: center;
    margin-top: 120px;
}

footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 0.9rem;
}

.notification {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--dark-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--gray-color);
    border-top-color: var(--primary-color);
    animation: spin 1s infinite linear;
    display: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive styles */
@media (min-width: 768px) {
    .input-section {
        display: flex;
        gap: 2rem;
    }
    
    .card {
        flex: 1;
    }
    
    .primary-btn {
        width: auto;
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    header {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .script-content {
        min-height: 250px;
        max-height: 400px;
    }
}