/*
 * File CSS: Text Case Converter Styles - High Impact Design
 * Wrapper: .crop-tool-wrap
 */

/* 1. Thiết lập biến màu và font (Deep Purple & Cyan chủ đạo) */
.crop-tool-wrap:root {
    --primary-color: #7B1FA2; /* Deep Purple */
    --accent-color: #00BCD4; /* Cyan/Turquoise */
    --secondary-color: #424242; /* Màu tối */
    --background-light: #F3E5F5; /* Nền tím nhạt */
    --card-background: #ffffff;
    --shadow-bold: 0 12px 30px rgba(123, 31, 162, 0.15); /* Shadow nổi bật */
    --border-radius-large: 12px;
    --text-color: #212121;
}

.crop-tool-wrap {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-light);
    margin: 0;
    padding: 20px;
}

/* Container chính với shadow đậm */
.crop-tool-wrap .container {
    max-width: 1500px;
   /* margin: 30px auto;*/
    background: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-bold); 
}

/* Tiêu đề */
.crop-tool-wrap h1, .crop-tool-wrap h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 5px;
    font-weight: 800; /* Rất đậm */
}
.crop-tool-wrap .lead {
    color: #9e9e9e;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1em;
}

/* Khu vực chức năng (CARD) */
.crop-tool-wrap .tool-section {
    margin-bottom: 30px;
    padding: 30px; /* Padding lớn hơn */
    border: 1px solid #f0f0f0;
    border-radius: var(--border-radius-large);
    background-color: var(--card-background);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Shadow tinh tế */
}

.crop-tool-wrap label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.1em;
    color: var(--primary-color); /* Label màu Primary */
}

/* INPUT & TEXTAREA STYLING */
.crop-tool-wrap textarea {
    width: 100%;
    padding: 18px; /* Padding lớn hơn */
    margin-top: 5px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    resize: vertical;
    min-height: 180px;
    font-size: 1.05em;
    font-family: inherit;
    transition: all 0.3s;
}
.crop-tool-wrap textarea:focus {
    border-color: var(--accent-color); /* Focus màu Accent */
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.3);
    outline: none;
}
.crop-tool-wrap #textOutput {
    background-color: #f7f7f7;
}
.crop-tool-wrap .hint {
    color: var(--secondary-color);
    font-size: 0.85em;
    display: block;
    margin-top: 10px;
    font-style: italic;
}

/* BUTTON GROUP */
.crop-tool-wrap .button-group {
    margin-top: 30px; /* Margin lớn hơn */
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.crop-tool-wrap .btn {
    padding: 15px 30px; /* Nút lớn hơn */
    border: none;
    border-radius: 30px; /* Nút bo tròn */
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex-grow: 1;
    max-width: 250px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nút Primary (Chuyển đổi Case) */
.crop-tool-wrap .btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 6px 15px rgba(123, 31, 162, 0.5); /* Shadow Primary đậm */
}
.crop-tool-wrap .btn-primary:hover {
    background-color: #9c27b0; 
    transform: translateY(-2px); /* Hiệu ứng nhấc lên */
    box-shadow: 0 8px 20px rgba(123, 31, 162, 0.6);
}

/* Nút Secondary (Sao chép, Xóa) */
.crop-tool-wrap .btn-secondary {
    background-color: var(--accent-color); /* Secondary dùng màu Accent */
    color: var(--text-color);
    box-shadow: 0 6px 15px rgba(0, 188, 212, 0.4);
}
.crop-tool-wrap .btn-secondary:hover {
    background-color: #0097a7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.5);
}

/* Khu vực Kết quả nổi bật */
.crop-tool-wrap #resultArea {
    background-color: #e1bee7; /* Nền tím nhạt nổi bật */
    border: 2px solid var(--primary-color);
    padding: 30px;
}
.crop-tool-wrap #resultArea label {
    text-align: center;
}

/* Media Query */
@media (max-width: 768px) {
    .crop-tool-wrap .container {
        padding: 20px;
    }
    .crop-tool-wrap .button-group .btn {
        flex-grow: 1;
        max-width: 100%;
        padding: 15px 20px;
    }
}