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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    overflow: auto !important;
}

.quote-section {
    position: fixed;
    left: 100px;
    top: 30%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 350px;
    width: auto;
}

.quote {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2em;
    line-height: 2;
    font-style: italic;
    text-align: left;
    margin: 0;
    padding: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 300;
    letter-spacing: 0.5px;
    position: relative;
}

.quote::before {
    content: '"';
    font-size: 3em;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: -10px;
    left: -20px;
    font-family: 'Georgia', serif;
    line-height: 1;
}

.quote::after {
    content: '"';
    font-size: 3em;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-family: 'Georgia', serif;
    line-height: 1;
}

.equivalent-section {
    position: fixed;
    right: 150px;
    top: 80%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 350px;
    width: auto;
}

#equivalent-display {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
    line-height: 1.8;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 300;
    letter-spacing: 0.5px;
    font-style: italic;
}

.equivalent-line {
    margin-bottom: 8px;
    font-weight: 300;
}

#equivalent-days {
    font-size: 2em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1024px) {
    .equivalent-section {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        max-width: 100%;
        width: 100%;
        margin-top: 30px;
    }
}

@media (max-width: 1024px) {
    .quote-section {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        max-width: 100%;
        width: 100%;
        margin-bottom: 30px;
    }
}

.container {
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: 2px;
}

.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
    font-weight: 500;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.copy-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
    margin-left: 8px;
    pointer-events: auto;
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.input-wrapper:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    color: #ffffff;
    opacity: 1;
}

.copy-btn:active {
    transform: translateY(-50%) scale(0.9);
}

.copy-btn.copied {
    color: #4caf50;
    opacity: 1;
}

.copy-btn.copied svg {
    display: none;
}

.copy-btn.copied::after {
    content: '✓';
    font-size: 16px;
    color: #4caf50;
}

input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Remove number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

input:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.12);
}

.input-group:last-child {
    margin-bottom: 0;
}

.add-field-container {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

select {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1.1em;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

select:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.12);
}

select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

select option {
    background-color: #2a2a2a;
    color: #ffffff;
}

.input-group {
    position: relative;
}

.remove-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 68, 68, 0.6);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
    padding: 4px;
    font-weight: bold;
    z-index: 2;
    width: 20px;
    height: 20px;
}

.input-wrapper:hover .remove-btn {
    opacity: 1;
}

.remove-btn:hover {
    color: #ff4444;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.remove-btn:active {
    transform: translateY(-50%) scale(0.9);
}

.input-group:has(.remove-btn) .input-wrapper input {
    padding-right: 80px;
}

.input-group {
    transition: opacity 0.2s ease;
}

.input-group.dragging {
    opacity: 0.5;
}

.input-group.drag-over {
    border-top: 3px solid #667eea;
}

.input-group.drag-over::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
    border-radius: 20px 20px 0 0;
}

.drag-handle {
    position: absolute;
    left: 10px;
    top: calc(50% + 15px);
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    cursor: move;
    font-size: 18px;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: color 0.3s ease;
    z-index: 5;
    pointer-events: auto;
    -webkit-user-drag: element;
}

.drag-handle:hover {
    color: rgba(255, 255, 255, 0.8);
}

.input-group:has(.drag-handle) .input-wrapper input {
    padding-left: 40px;
}

.input-wrapper input {
    padding-right: 45px;
}

.input-wrapper {
    display: flex;
    align-items: center;
}

.input-group:has(.drag-handle) label {
    padding-left: 30px;
}

/* Feedback Button */
.feedback-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feedback-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
}

.modal-content h2 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 300;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
    font-weight: 500;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: rgba(102, 126, 234, 0.8);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.feedback-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9em;
    display: none;
}

.feedback-status.success {
    display: block;
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.feedback-status.error {
    display: block;
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}
