body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header, .content-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.toolbar {
    display: flex;
    gap: 10px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tabs {
    display: flex;
    gap: 10px;
}

.tab {
    background-color: #f0f0f0;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.tab.active {
    background-color: #3498db;
    color: white;
}

button {
    background-color: #ecf0f1;
    border: none;
    color: #2c3e50;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #bdc3c7;
}

.primary-btn {
    background-color: #3498db;
    color: white;
}

.primary-btn:hover {
    background-color: #2980b9;
}

main {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.list-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#searchInput {
    flex-grow: 1;
    margin-right: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#sortSelect {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

.idea-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.idea-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.idea-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #2c3e50;
    text-decoration: none;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

#cloudView {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.cloud-node {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    overflow: hidden;
    z-index: 2;
}

.cloud-node:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cloud-node .emoji {
    font-size: 24px;
    margin-bottom: 5px;
}

.cloud-node .title {
    font-size: 14px;
    word-wrap: break-word;
    max-width: 100px;
}

.tag-line {
    position: absolute;
    height: 2px;
    background-color: #3498db;
    opacity: 0.5;
    transform-origin: 0 50%;
    z-index: 1;
}

.emoji-input-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.emoji-input-container input {
    flex-grow: 1;
    margin-right: 10px;
}

#emojiPickerBtn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
}

emoji-picker {
    width: 100%;
    max-height: 300px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    header, .content-header {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar, .tabs {
        flex-direction: column;
    }

    .tab, #newIdeaBtn {
        width: 100%;
    }

    .cloud-node {
        width: 100px;
        height: 100px;
    }

    #cloudView {
        height: 400px;
    }

    .list-controls {
        flex-direction: column;
    }

    #searchInput, #sortSelect {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}