0% found this document useful (0 votes)
83 views12 pages

Whiteboard Css

The document is a CSS stylesheet that defines various styles for a web application, including gradients, colors, and layout properties. It includes styles for elements such as headers, buttons, input groups, and containers, ensuring a responsive and visually appealing design. The stylesheet also incorporates features like hover effects and transitions to enhance user interaction.

Uploaded by

Donate
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views12 pages

Whiteboard Css

The document is a CSS stylesheet that defines various styles for a web application, including gradients, colors, and layout properties. It includes styles for elements such as headers, buttons, input groups, and containers, ensuring a responsive and visually appealing design. The stylesheet also incorporates features like hover effects and transitions to enhance user interaction.

Uploaded by

Donate
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

<style>

:root {
--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c
100%);
--accent-color: #667eea;
--glass-bg: rgba(255, 255, 255, 0.1);
--glass-border: rgba(255, 255, 255, 0.2);
--text-primary: #333;
--text-secondary: #666;
--border-radius: 15px;
--shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
--shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
--engineering-color: #ff9800; /* Orange for Engineering */
--medical-color: #4caf50; /* Green for Medical */
}

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

body {
font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: var(--primary-gradient);
min-height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
}

.header {
background: var(--glass-bg);
backdrop-filter: blur(20px);
padding: 1rem 2rem;
border-bottom: 1px solid var(--glass-border);
display: flex;
justify-content: space-between;
align-items: center;
}

.header h1 {
color: white;
font-size: 1.8rem;
font-weight: 600;
background: linear-gradient(45deg, #fff, #e0e7ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.header-controls {
display: flex;
gap: 1rem;
align-items: center;
}

.theme-toggle, .main-section-toggle {
background: var(--glass-bg);
border: 1px solid var(--glass-border);
border-radius: 25px;
padding: 0.5rem 1rem;
color: white;
cursor: pointer;
transition: all 0.3s ease;
}

.theme-toggle:hover, .main-section-toggle:hover {
background: rgba(255, 255, 255, 0.2);
}
.main-section-toggle.active {
background: rgba(255, 255, 255, 0.3);
font-weight: bold;
}

.main-container {
flex: 1;
display: flex;
gap: 1rem;
padding: 1rem;
overflow: hidden;
}

.sidebar {
width: 380px; /* Slightly wider for more tools */
background: rgba(255, 255, 255, 0.95);
border-radius: var(--border-radius);
padding: 1.5rem;
box-shadow: var(--shadow);
overflow-y: auto;
max-height: calc(100vh - 120px); /* Adjusted for header and padding */
backdrop-filter: blur(10px);
}
.sidebar h3 {
margin-top: 1rem;
margin-bottom: 0.75rem;
color: var(--text-primary);
border-bottom: 2px solid var(--accent-color);
padding-bottom: 0.5rem;
font-size: 1.1rem;
}
.sidebar .engineering-title { border-color: var(--engineering-color); }
.sidebar .medical-title { border-color: var(--medical-color); }

.canvas-container {
flex: 1;
background: rgba(255, 255, 255, 0.95);
border-radius: var(--border-radius);
position: relative;
overflow: hidden;
box-shadow: var(--shadow);
backdrop-filter: blur(10px);
}

.canvas-tabs {
display: flex;
background: rgba(0, 0, 0, 0.05);
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tab {
padding: 1rem 2rem;
cursor: pointer;
border: none;
background: transparent;
font-size: 1rem;
font-weight: 500;
color: var(--text-secondary);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
}

.tab.active {
background: white;
color: var(--text-primary);
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.tab.active::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 3px;
background: var(--primary-gradient);
border-radius: 3px 3px 0 0;
}

.tab:hover:not(.active) {
background: rgba(0, 0, 0, 0.05);
transform: translateY(-1px);
}

.canvas-content {
position: relative;
width: 100%;
height: calc(100% - 60px); /* Adjusted for tabs */
}

canvas {
display: block;
width: 100%;
height: 100%;
cursor: crosshair;
position: absolute; /* Allow layering */
top: 0;
left: 0;
}

#graphCanvas { z-index: 1; }
#whiteboardCanvas { z-index: 2; pointer-events: none; } /* Initially
pointer-events none */
#physics3dCanvas { z-index: 3; pointer-events: none; display: none;
background: #e0e0e0;} /* For 3D physics */
#medicalViewContainer {
z-index: 4; pointer-events: auto; display: none;
width: 100%; height: 100%;
overflow: auto; padding: 10px; /* Reduced padding for SVGs */
text-align: center;
display: flex; /* For centering SVG */
align-items: center; /* For centering SVG */
justify-content: center; /* For centering SVG */
}
#medicalViewContainer svg { /* Style for loaded SVG */
max-width: 95%;
max-height: 95%;
display: block;
margin: auto;
}

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

.input-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: var(--text-primary);
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.input-group input, .input-group select, .input-group textarea, .input-


group button {
width: 100%;
padding: 0.875rem 1rem;
border: 2px solid #e1e1e1;
border-radius: 10px;
font-size: 1rem;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(5px);
}
.input-group button:not(.btn) { /* Style for buttons inside input-group if
not already .btn */
cursor: pointer;
background-color: var(--accent-color);
color: white;
font-weight: 500;
}
.input-group button:not(.btn):hover {
opacity: 0.9;
}

.input-group input:focus, .input-group select:focus, .input-group


textarea:focus {
outline: none;
border-color: var(--accent-color);
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
transform: translateY(-1px);
}

.function-input-container {
position: relative;
}

.function-suggestions {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: white;
border: 1px solid #e1e1e1;
border-radius: 8px;
box-shadow: var(--shadow);
max-height: 200px;
overflow-y: auto;
z-index: 1000;
display: none; /* Hidden by default */
}

.suggestion-item {
padding: 0.75rem 1rem;
cursor: pointer;
border-bottom: 1px solid #f0f0f0;
transition: background 0.2s ease;
}

.suggestion-item:hover {
background: #f8f9fa;
}

.suggestion-item:last-child {
border-bottom: none;
}

.btn {
padding: 0.875rem 1.5rem;
border: none;
border-radius: 10px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
margin: 0.25rem;
display: inline-flex;
align-items: center;
gap: 0.5rem;
text-decoration: none;
}

.btn-primary {
background: var(--primary-gradient);
color: white;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-hover);
}

.btn-secondary {
background: rgba(248, 249, 250, 0.9);
color: var(--text-primary);
border: 2px solid #e1e1e1;
backdrop-filter: blur(5px);
}

.btn-secondary:hover {
background: rgba(233, 236, 239, 0.9);
transform: translateY(-1px);
}

.btn-danger {
background: linear-gradient(135deg, #dc3545, #c82333);
color: white;
}
.btn-danger:hover {
background: linear-gradient(135deg, #c82333, #a71e2a);
transform: translateY(-1px);
}
.btn-engineering { background: var(--engineering-color); color: white; }
.btn-medical { background: var(--medical-color); color: white; }

.btn-small {
padding: 0.5rem 1rem;
font-size: 0.875rem;
}

.function-list, .manual-points-list {
max-height: 150px; /* Adjusted height */
overflow-y: auto;
border: 1px solid #e1e1e1;
border-radius: 10px;
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(5px);
margin-bottom: 1rem;
}

.function-item, .point-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1rem; /* Adjusted padding */
margin: 0;
border-bottom: 1px solid #f0f0f0;
transition: all 0.3s ease;
}

.function-item:last-child, .point-item:last-child {
border-bottom: none;
}
.function-item:hover, .point-item:hover {
background: rgba(102, 126, 234, 0.05);
}

.function-info, .point-info {
display: flex;
align-items: center;
gap: 0.75rem;
flex: 1;
}

.function-color {
width: 24px;
height: 24px;
border-radius: 50%;
border: 3px solid #fff;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
flex-shrink: 0;
}
.function-details, .point-details {
display: flex;
flex-direction: column;
gap: 0.25rem;
}

.function-expression, .point-coordinates {
font-family: 'JetBrains Mono', 'Fira Code', monospace;
font-weight: 500;
}

.function-actions, .point-actions {
display: flex;
gap: 0.5rem;
}

.whiteboard-tools {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.5rem;
margin-bottom: 1rem;
}

.tool-btn {
padding: 0.75rem 0.5rem;
border: 2px solid #e1e1e1;
border-radius: 8px;
background: rgba(255,255,255,0.8);
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
text-align: center;
font-size: 0.9rem;
backdrop-filter: blur(5px);
}
.tool-btn.active {
border-color: var(--accent-color);
background: var(--accent-color);
color: white;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.tool-btn:hover:not(.active) {
border-color: var(--accent-color);
transform: translateY(-1px);
}

.color-picker {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 0.5rem;
margin: 0.5rem 0;
}
.color-option {
width: 35px;
height: 35px;
border-radius: 50%;
cursor: pointer;
border: 3px solid transparent;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.color-option:hover {
transform: scale(1.1);
box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.color-option.active {
border-color: #333;
transform: scale(1.1);
}

.control-panel {
position: absolute;
top: 15px;
right: 15px;
display: flex;
flex-direction: column;
gap: 0.5rem;
z-index: 10;
}
.control-row {
display: flex;
gap: 0.5rem;
}

.control-btn {
width: 45px;
height: 45px;
border: none;
border-radius: 50%;
background: rgba(255,255,255,0.95);
font-size: 1.2rem;
font-weight: bold;
cursor: pointer;
box-shadow: 0 4px 16px rgba(0,0,0,0.2);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(10px);
}
.control-btn:hover {
transform: scale(1.1);
box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.info-panel {
position: absolute;
bottom: 15px;
left: 15px;
background: rgba(0,0,0,0.8);
color: white;
padding: 1rem;
border-radius: 10px;
font-family: 'JetBrains Mono', monospace;
font-size: 0.9rem;
backdrop-filter: blur(10px);
min-width: 200px;
z-index: 10;
}
.info-row {
display: flex;
justify-content: space-between;
margin-bottom: 0.25rem;
}
.info-row:last-child { margin-bottom: 0; }

.range-container {
display: flex;
align-items: center;
gap: 1rem;
}
.range-input {
flex: 1;
}
.range-value {
min-width: 50px;
text-align: right;
font-weight: 600;
color: var(--accent-color);
}

.advanced-controls, .physics-tools, .medical-tools { /* Grouping similar


sections */
border-top: 1px solid #e1e1e1;
padding-top: 1rem;
margin-top: 1rem;
}
.control-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
}

.analysis-panel {
background: rgba(102,126,234,0.05);
border: 1px solid rgba(102,126,234,0.2);
border-radius: 10px;
padding: 1rem;
margin-top: 1rem;
}
.analysis-title {
font-weight: 600;
color: var(--accent-color);
margin-bottom: 0.5rem;
}
.analysis-result {
font-family: 'JetBrains Mono', monospace;
font-size: 0.9rem;
color: var(--text-secondary);
}

.modal {
display: none; /* Hidden by default */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
backdrop-filter: blur(10px);
z-index: 10000;
align-items: center;
justify-content: center;
}
.modal.active {
display: flex;
}

.modal-content {
background: white;
border-radius: var(--border-radius);
padding: 2rem;
max-width: 500px;
width: 90%;
box-shadow: var(--shadow-hover);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.modal-title {
font-size: 1.5rem;
font-weight: 600;
color: var(--text-primary);
}
.close-btn {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--text-secondary);
padding: 0.5rem;
border-radius: 50%;
transition: all 0.3s ease;
}
.close-btn:hover {
background: rgba(0,0,0,0.1);
}

/* Scientific Calculator Styles */


.calculator { display: grid; grid-template-columns: repeat(4, 1fr); gap:
0.5rem; margin-top: 0.5rem; }
.calculator input[type="text"] { grid-column: 1 / -1; margin-bottom:
0.5rem; text-align: right; font-size: 1.5rem; }
.calculator button { padding: 1rem; font-size: 1rem; background-color:
#f0f0f0; border: 1px solid #ccc; border-radius: 5px;}
.calculator button:hover { background-color: #e0e0e0; }
.calculator .operator { background-color: var(--engineering-color); color:
white; }
.calculator .double-width { grid-column: span 2; }

/* SI Unit Converter Styles */


.unit-converter .control-grid { margin-top: 0.5rem; }
.unit-converter input, .unit-converter select { margin-bottom: 0.5rem;}

@media (max-width: 1024px) {


.main-container {
flex-direction: column;
}
.sidebar {
width: 100%;
max-height: 350px; /* Increased max-height for better usability */
}
.control-panel {
right: 10px;
top: 10px;
}
.info-panel {
left: 10px;
bottom: 10px;
font-size: 0.8rem;
padding: 0.75rem;
}
}

@media (max-width: 768px) {


.header {
padding: 1rem;
flex-direction: column; /* Stack header items */
gap: 0.5rem;
}
.header h1 {
font-size: 1.4rem;
}
.header-controls { flex-wrap: wrap; justify-content: center;} /* Allow
wrapping for controls */
.whiteboard-tools {
grid-template-columns: repeat(2, 1fr);
}
.color-picker {
grid-template-columns: repeat(4, 1fr);
}
.control-grid {
grid-template-columns: 1fr;
}
.tab {
padding: 0.75rem 1rem; /* Smaller tabs on mobile */
font-size: 0.9rem;
}
.canvas-content {
height: calc(100% - 50px); /* Adjusted for smaller tabs */
}
.calculator { grid-template-columns: repeat(3, 1fr); } /* Adjust
calculator for smaller screens */
}

/* Animation keyframes */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
from { transform: translateX(-100%); }
to { transform: translateX(0); }
}
.animate-fade-in { animation: fadeIn 0.5s ease-out; }
.animate-slide-in { animation: slideIn 0.3s ease-out; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius:
4px; }
::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius:
4px; }
::-webkit-scrollbar-thumb:hover { background: #5a6fd8; }

.hidden-section { display: none !important; }


</style>

You might also like