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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f5ff;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #5b84c4;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

main {
    flex: 1;
    padding: 2rem;
    padding-bottom: 7rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
    color: #5b84c4;
    border-bottom: 2px solid #d0e0f7;
    padding-bottom: 0.5rem;
}

.idea-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
}

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

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

.form-instructions {
    background-color: #e9f5ff;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #5b84c4;
}

.form-instructions p {
    margin: 0;
    color: #2c3e50;
}

.required-mark {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    border-color: #5b84c4;
    box-shadow: 0 0 0 3px rgba(91, 132, 196, 0.25);
    outline: none;
}

textarea {
    resize: vertical;
}

.btn, .btn-small {
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.btn {
    background-color: #5b84c4;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: bold;
}

.btn::before {
    content: none;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn:hover, .btn-small:hover {
    background-color: #4a76b8;
}

.ideas-list-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.ideas-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.add-idea-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.idea-form-modal {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 0;
}

.modal-header h2 {
    margin-bottom: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #5b84c4;
}

.modal-content .form-instructions {
    margin: 1rem 2rem;
}

.modal-content form {
    padding: 0 2rem 2rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

.idea-card {
    background-color: #fafcff;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.idea-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.idea-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.char-count {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

.char-count.warning {
    color: #fd7e14;
}

.char-count.danger {
    color: #dc3545;
}

.idea-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-badge {
    background-color: #e6f2ff;
    color: #4285f4;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-badge {
    background-color: #4a90e2;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    text-align: center;
    min-width: 80px;
    white-space: nowrap;
    overflow: visible;
    max-width: none;
}

.category-badge:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.ideas-count {
    font-size: 1rem;
    color: #6c757d;
    font-weight: normal;
    background-color: #e6f2ff;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-left: 0.5rem;
}

.idea-description {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.5;
}

.idea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid #d0e0f7;
}

.date {
    font-weight: bold;
    color: #495057;
    margin-right: 0.8rem;
}

.author {
    margin-right: auto;
    font-weight: bold;
    color: #495057;
    cursor: pointer;
    transition: color 0.2s;
}

.author:hover {
    color: #5b84c4;
    text-decoration: underline;
}

.author::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('https://cdn-icons-png.flaticon.com/512/1077/1077114.png');
    background-size: contain;
    margin-right: 5px;
    vertical-align: middle;
}

.hint {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: normal;
}

.idea-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.no-ideas {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.modal {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.modal-content h3 {
    color: #5b84c4;
    margin-bottom: 1rem;
}

.modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-top: 1px solid #d0e0f7;
    background-color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.search {
    grid-column: 1 / 3;
    width: 100%;
}

.sort, .filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort label, .filter label {
    white-space: nowrap;
    margin-bottom: 0;
    min-width: 80px;
}

.sort select, .filter select, .filter input {
    flex: 1;
}

.reset-filters {
    grid-column: 1 / 3;
    text-align: center;
    margin-top: 0.5rem;
}

.reset-btn {
    background-color: #f8f9fa;
    border: 1px solid #d0e0f7;
    color: #5b84c4;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.reset-btn:hover {
    background-color: #e9ecef;
}

.copyright {
    display: block;
    font-size: 0.75rem;
    margin-top: -0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: normal;
}

footer {
    background-color: #5b84c4;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .ideas-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        display: flex;
        flex-direction: column;
    }
    
    .search {
        width: 100%;
    }
    
    .sort, .filter {
        width: 100%;
    }
    
    .idea-header {
        flex-direction: column;
    }
    
    .category-badge {
        margin-top: 0.5rem;
        align-self: flex-start;
        min-width: 100px;
    }
    
    .idea-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-top: auto;
    }
    
    .actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .idea-tags {
        margin-top: 0.5rem;
    }
}