Spaces:
Configuration error

aimindmap / src /styles.css
Foundups
Initial commit: AI Mind Map application
420bd16
Raw History Blame Contribute Delete
5.89 kB
body {
background-color: #a3b4c4;
color: #ecf0f1;
font-family: "Arial", sans-serif;
}
div,
button {
margin: 5px;
}
.App {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
width: 90%;
margin: auto;
}
.app-header {
text-align: center;
margin-bottom: 2rem;
}
.app-header h1 {
color: #2c3e50;
margin-bottom: 1rem;
}
.tab-buttons {
display: flex;
justify-content: space-between;
}
.tab-button {
background-color: #573f54;
padding: 10px 20px;
border: none;
border-radius: 5px;
color: white;
cursor: pointer;
}
.tab-button:hover {
background-color: #7e135e;
}
.outer {
display: flex;
justify-content: space-between;
width: 100%;
padding: 0;
margin: 0;
}
.outer > div {
width: 100%;
}
.mindmap-container {
display: flex;
flex-direction: column;
gap: 1rem;
position: relative;
}
.mindmap-controls {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
}
.mindmap-edit-btn {
background-color: #3498db;
padding: 0.5rem 1rem;
border-radius: 4px;
color: white;
font-size: 0.9rem;
}
.mindmap-edit-btn:hover {
background-color: #2980b9;
}
.mindmap-node-edit {
position: absolute;
background-color: white;
padding: 1rem;
border-radius: 4px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
z-index: 100;
}
.mindmap-node-edit textarea {
width: 100%;
min-height: 100px;
margin-bottom: 0.5rem;
}
.ai-suggestion-panel {
background-color: #34495e;
padding: 1rem;
border-radius: 4px;
margin-top: 1rem;
}
.ai-suggestion-panel h3 {
color: #ecf0f1;
margin-top: 0;
}
.input-section {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}
.prompt-input {
flex: 1;
min-height: 100px;
padding: 0.5rem;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
}
.generate-btn {
padding: 0.5rem 1rem;
background-color: #2ecc71;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s;
}
.generate-btn:disabled {
background-color: #95a5a6;
cursor: not-allowed;
}
.error-message {
color: #e74c3c;
padding: 1rem;
background-color: #fadbd8;
border-radius: 4px;
margin-bottom: 1rem;
}
.output-section {
display: flex;
flex-direction: column;
gap: 1rem;
}
.result-output {
width: 100%;
min-height: 150px;
padding: 0.5rem;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
}
.mindmap-preview {
border: 1px solid #ccc;
border-radius: 4px;
padding: 1rem;
background-color: white;
}
.account-section {
max-width: 600px;
margin: 0 auto;
padding: 2rem;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.token-info {
margin: 2rem 0;
display: flex;
flex-direction: column;
gap: 1rem;
}
.buy-tokens-btn {
width: 100%;
padding: 1rem;
background-color: #3498db;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1.1rem;
transition: background-color 0.2s;
}
.buy-tokens-btn:hover {
background-color: #2980b9;
}
.app-footer {
margin-top: 3rem;
text-align: center;
color: #7f8c8d;
font-size: 0.9rem;
}
.inputContainer {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}
.inputGroup {
flex: 0 0 48%;
}
.outputContainer {
margin-bottom: 20px;
}
.buttonContainer {
display: flex;
justify-content: space-between;
}
.label {
display: block;
margin-bottom: 10px;
}
textarea {
width: 100%;
box-sizing: border-box;
min-height: 50px;
height: 15vh;
padding: 10px;
border: none;
border-radius: 5px;
background-color: #34495e;
color: #ecf0f1;
}
button {
cursor: pointer;
background-color: #098046;
color: #ecf0f1;
transition: background-color 0.3s ease;
padding: 10px;
border: none;
border-radius: 5px;
}
button:hover {
background-color: #2ecc71;
}
.fa.icon-container {
color: inherit !important;
font-size: inherit !important;
}
.login-container {
margin-bottom: 1rem;
}
.user-info {
display: flex;
align-items: center;
gap: 1rem;
color: #ecf0f1;
}
.user-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
}
.user-details {
flex: 1;
}
.user-name {
margin: 0;
font-weight: bold;
}
.user-email {
margin: 0.25rem 0;
font-size: 0.9rem;
opacity: 0.8;
}
.google-sign-in-btn {
width: 100%;
background-color: #4285f4;
}
.google-sign-in-btn:hover {
background-color: #357abd;
}
.sign-out-btn {
background-color: #c0392b;
margin-top: 0.5rem;
}
.sign-out-btn:hover {
background-color: #e74c3c;
}
.tier-info {
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.upgrade-btn {
background-color: #f1c40f;
color: #2c3e50;
font-weight: bold;
}
.upgrade-btn:hover {
background-color: #f39c12;
}
.settings-section {
display: flex;
flex-direction: column;
gap: 1rem;
}
.settings-section > div {
margin-bottom: 15px;
}
.settings-section label {
display: block;
margin-bottom: 5px;
color: #ecf0f1;
}
.settings-section input,
.settings-section select {
width: 100%;
padding: 8px;
background-color: #34495e;
border: 1px solid #2c3e50;
border-radius: 4px;
color: #ecf0f1;
}
.mermaid-container {
background-color: white;
padding: 20px;
border-radius: 5px;
margin-top: 20px;
overflow-x: auto;
}
.mermaid-error {
background-color: #fadbd8;
color: #c0392b;
padding: 15px;
border-radius: 5px;
margin-top: 20px;
font-size: 14px;
border: 1px solid #e74c3c;
}
/* Mermaid specific styles */
.mindmap-node rect {
fill: #34495e !important;
stroke: #2c3e50 !important;
}
.mindmap-node text {
fill: #ecf0f1 !important;
}
.mindmap-node .icon {
font-family: "Font Awesome 5 Free" !important;
}