/* style.css */

/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* General styles for the plugin container */
.tcc-container {
    font-family: 'Inter', sans-serif; /* Use Inter font */
    background-color: #f7f7f7;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px; /* Set max width */
    margin: 40px auto; /* Center align and add margin */
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid #e0e0e0;
}

/* Title styling */
.tcc-title {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Editor info (word limit, etc.) - Adjusted after removing elements */
.tcc-editor-info {
    display: flex;
    justify-content: flex-start; /* Align to start as elements are removed */
    align-items: center;
    margin-bottom: 25px;
    padding: 10px 15px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 0.9em;
    color: #666;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tcc-edit-info {
    color: #007bff; /* Blue color */
    font-weight: 500;
}

/* Main content layout */
.tcc-content {
    display: flex;
    gap: 25px;
    flex-wrap: wrap; /* Wrap on smaller screens */
}

/* Option list (case types) */
.tcc-options {
    flex: 1;
    min-width: 250px; /* Minimum width */
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e0e0e0;
}

.tcc-option-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tcc-option-item {
    padding: 15px 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transition */
    font-weight: 600;
    color: #444;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tcc-option-item:hover {
    background-color: #e6e6e6;
    transform: translateY(-2px); /* Lift slightly */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tcc-option-item.selected {
    background-color: #ff8c00; /* Orange color */
    color: #fff;
    border-color: #e07b00;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
    transform: translateY(-3px);
}

.tcc-option-item.selected::after {
    content: '✔'; /* Checkmark icon */
    font-size: 1.2em;
    margin-left: 10px;
    animation: fadeIn 0.3s ease-out; /* Fade in animation */
}

/* Text area styling */
.tcc-textareas {
    flex: 2;
    min-width: 350px; /* Minimum width */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tcc-textarea {
    width: 100%;
    height: 180px; /* Fixed height */
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.1em;
    color: #333;
    resize: vertical; /* Allow vertical resizing only */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', sans-serif;
}

.tcc-textarea:focus {
    border-color: #ff8c00; /* Orange color on focus */
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.2);
}

/* Generate button styling */
.tcc-generate-btn {
    background: linear-gradient(to right, #ff8c00, #ffa500); /* Orange gradient */
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(255, 140, 0, 0.3);
    margin-top: 20px; /* Margin below option list or between textareas */
    width: 100%; /* Take full width */
}

.tcc-generate-btn:hover {
    background: linear-gradient(to right, #ffa500, #ff8c00); /* Change gradient on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

.tcc-generate-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.2);
}

/* Specific styling for the copy button to align it correctly */
.tcc-copy-btn {
    margin-top: 0; /* Remove top margin if it's directly below textarea */
    align-self: flex-end; /* Align to the right within the flex container */
    max-width: 150px; /* Make the copy button smaller */
    padding: 10px 15px;
    font-size: 1em;
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .tcc-content {
        flex-direction: column; /* Column layout on smaller screens */
    }

    .tcc-options,
    .tcc-textareas {
        min-width: unset; /* Remove min-width */
        width: 100%; /* Take full width */
    }

    .tcc-container {
        padding: 15px;
        margin: 20px auto;
    }

    .tcc-title {
        font-size: 1.8em;
    }

    .tcc-editor-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .tcc-copy-btn {
        max-width: 100%; /* Full width on small screens */
    }
}

@media (max-width: 480px) {
    .tcc-option-item {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    .tcc-textarea {
        font-size: 1em;
        height: 150px;
    }

    .tcc-generate-btn {
        font-size: 1.1em;
        padding: 12px 20px;
    }
}
