:root {
--primary: #6366f1;
--primary-dark: #4f46e5;
--secondary: #8b5cf6;
--success: #10b981;
--dark: #1f2937;
--gray: #6b7280;
--light-gray: #f3f4f6;
--white: #ffffff;
--border: #e5e7eb;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background-color: var(--light-gray);
color: var(--dark);
line-height: 1.6;
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 100vh;
}
.container {
max-width: 1400px;
margin: 0 auto;
padding: 20px;
}
header {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
padding: 2rem 0;
box-shadow: var(--shadow);
margin-bottom: 2rem;
}
h1 {
font-size: 2.5rem;
text-align: center;
margin-bottom: 0.5rem;
}
.subtitle {
text-align: center;
opacity: 0.9;
font-size: 1.1rem;
}
.tabs {
display: flex;
gap: 10px;
margin-bottom: 2rem;
border-bottom: 2px solid var(--border);
overflow-x: auto;
overflow-y: hidden;
}
.tab {
padding: 12px 24px;
background: none;
border: none;
font-size: 1rem;
font-weight: 500;
color: var(--gray);
cursor: pointer;
position: relative;
transition: all 0.3s ease;
white-space: nowrap;
}
.tab:hover {
color: var(--primary);
}
.tab.active {
color: var(--primary);
}
.tab.active::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 100%;
height: 2px;
background: var(--primary);
}
.tab-content {
display: none;
animation: fadeIn 0.3s ease;
}
.tab-content.active {
display: block;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.generator-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
margin-bottom: 2rem;
}
.controls-panel,
.preview-panel {
background: var(--white);
border-radius: 12px;
padding: 1.5rem;
box-shadow: var(--shadow);
}
.panel-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1.5rem;
color: var(--dark);
}
.control-group {
margin-bottom: 1.5rem;
}
.control-label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--gray);
}
.control-row {
display: flex;
align-items: center;
gap: 1rem;
}
input[type="range"] {
flex: 1;
height: 6px;
border-radius: 3px;
background: var(--border);
outline: none;
-webkit-appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--primary);
cursor: pointer;
transition: all 0.2s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
transform: scale(1.2);
}
input[type="number"],
input[type="text"],
select {
padding: 0.5rem 0.75rem;
border: 1px solid var(--border);
border-radius: 6px;
font-size: 0.95rem;
transition: all 0.2s ease;
}
input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
input[type="color"] {
width: 50px;
height: 40px;
border: none;
border-radius: 6px;
cursor: pointer;
}
.preview-area {
min-height: 300px;
background: var(--light-gray);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1.5rem;
position: relative;
overflow: hidden;
}
.code-panel {
background: var(--dark);
color: var(--white);
border-radius: 8px;
padding: 1.5rem;
position: relative;
max-height: 400px;
overflow-y: auto;
}
.code-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.code-title {
font-size: 0.9rem;
opacity: 0.7;
}
.copy-btn {
background: var(--primary);
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 6px;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.2s ease;
}
.copy-btn:hover {
background: var(--primary-dark);
transform: translateY(-2px);
}
.copy-btn.copied {
background: var(--success);
}
pre {
margin: 0;
font-family: 'Courier New', monospace;
font-size: 0.9rem;
line-height: 1.5;
white-space: pre-wrap;
}
/* Syntax highlighting */
.tag {
color: #f472b6;
}
.attr {
color: #60a5fa;
}
.value {
color: #86efac;
}
.selector {
color: #fbbf24;
}
.property {
color: #a78bfa;
}
.comment {
color: #6b7280;
font-style: italic;
}
.color-stops {
display: flex;
flex-direction: column;
gap: 1rem;
}
.color-stop {
display: flex;
align-items: center;
gap: 1rem;
padding: 0.75rem;
background: var(--light-gray);
border-radius: 8px;
}
.remove-stop {
background: #ef4444;
color: white;
border: none;
padding: 0.4rem 0.8rem;
border-radius: 4px;
cursor: pointer;
font-size: 0.85rem;
}
.add-stop {
background: var(--success);
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 6px;
cursor: pointer;
margin-top: 1rem;
transition: all 0.2s ease;
}
.add-stop:hover {
transform: translateY(-2px);
}
.shape-selector {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
margin-bottom: 1.5rem;
}
.shape-option {
padding: 1rem;
background: var(--light-gray);
border: 2px solid transparent;
border-radius: 8px;
cursor: pointer;
text-align: center;
transition: all 0.2s ease;
}
.shape-option:hover {
border-color: var(--primary);
}
.shape-option.selected {
border-color: var(--primary);
background: rgba(99, 102, 241, 0.1);
}
.text-preview {
font-size: 3rem;
font-weight: bold;
text-align: center;
padding: 2rem;
}
@media (max-width: 968px) {
.generator-container {
grid-template-columns: 1fr;
}
h1 {
font-size: 2rem;
}
.tabs {
flex-wrap: wrap;
}
}
.notification {
position: fixed;
bottom: 20px;
right: 20px;
background: var(--success);
color: white;
padding: 1rem 1.5rem;
border-radius: 8px;
box-shadow: var(--shadow-lg);
transform: translateY(100px);
opacity: 0;
transition: all 0.3s ease;
z-index: 1000;
}
.notification.show {
transform: translateY(0);
opacity: 1;
}
footer {
text-align: center;
padding: 1.5rem 0;
color: var(--gray);
font-size: 0.9rem;
}
/* Filter Generator Styles */
.filter-demo-box {
width: 200px;
height: 200px;
border-radius: 16px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1rem;
background: var(--white);
box-shadow: var(--shadow-lg);
overflow: hidden;
}
.filter-demo-gradient {
width: 100%;
height: 120px;
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}
.filter-demo-box span {
font-weight: 600;
color: var(--dark);
}
.reset-btn {
width: 100%;
background: var(--gray);
color: white;
border: none;
padding: 0.75rem 1rem;
border-radius: 6px;
cursor: pointer;
font-size: 0.95rem;
transition: all 0.2s ease;
margin-top: 0.5rem;
}
.reset-btn:hover {
background: var(--dark);
transform: translateY(-2px);
}
/* Animation Generator Styles */
.animation-selector {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.75rem;
margin-bottom: 1rem;
}
.animation-option {
padding: 0.75rem 0.5rem;
background: var(--light-gray);
border: 2px solid transparent;
border-radius: 8px;
cursor: pointer;
text-align: center;
font-size: 0.9rem;
transition: all 0.2s ease;
}
.animation-option:hover {
border-color: var(--primary);
}
.animation-option.selected {
border-color: var(--primary);
background: rgba(99, 102, 241, 0.1);
}
.animation-demo-box {
width: 120px;
height: 120px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 600;
box-shadow: var(--shadow-lg);
}
.play-btn {
width: 100%;
background: var(--primary);
color: white;
border: none;
padding: 0.75rem 1rem;
border-radius: 6px;
cursor: pointer;
font-size: 1rem;
font-weight: 500;
transition: all 0.2s ease;
margin-top: 1rem;
}
.play-btn:hover {
background: var(--primary-dark);
transform: translateY(-2px);
}
/* Animation Keyframes */
@keyframes fade {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideIn {
from {
transform: translateX(-100px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(-30px);
}
60% {
transform: translateY(-15px);
}
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
@keyframes shake {
0%, 100% {
transform: translateX(0);
}
10%, 30%, 50%, 70%, 90% {
transform: translateX(-10px);
}
20%, 40%, 60%, 80% {
transform: translateX(10px);
}
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes scale {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes flip {
from {
transform: perspective(400px) rotateY(0);
}
to {
transform: perspective(400px) rotateY(360deg);
}
}
@media (max-width: 768px) {
.animation-selector {
grid-template-columns: repeat(2, 1fr);
}
}
/* Border Radius Generator Styles */
.radius-demo-box {
width: 200px;
height: 200px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
border-radius: 20px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
box-shadow: var(--shadow-lg);
transition: all 0.3s ease;
}
.corner-indicator {
position: absolute;
font-size: 0.7rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.7);
padding: 4px 6px;
background: rgba(0, 0, 0, 0.2);
border-radius: 4px;
}
.corner-indicator.tl {
top: 8px;
left: 8px;
}
.corner-indicator.tr {
top: 8px;
right: 8px;
}
.corner-indicator.br {
bottom: 8px;
right: 8px;
}
.corner-indicator.bl {
bottom: 8px;
left: 8px;
}
.radius-presets {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.5rem;
}
.preset-btn {
padding: 0.6rem 0.5rem;
background: var(--light-gray);
border: 2px solid transparent;
border-radius: 6px;
cursor: pointer;
font-size: 0.85rem;
transition: all 0.2s ease;
}
.preset-btn:hover {
border-color: var(--primary);
background: rgba(99, 102, 241, 0.1);
}
.preset-btn.active {
border-color: var(--primary);
background: rgba(99, 102, 241, 0.15);
}
@media (max-width: 768px) {
.radius-presets {
grid-template-columns: repeat(2, 1fr);
}
}
/* Flexbox Generator Styles */
.flex-container {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: stretch;
flex-wrap: nowrap;
gap: 10px;
width: 100%;
min-height: 200px;
padding: 20px;
background: rgba(255, 255, 255, 0.5);
border-radius: 12px;
border: 2px dashed var(--border);
}
.flex-item {
min-width: 50px;
min-height: 50px;
padding: 15px 20px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
box-shadow: var(--shadow);
}
/* CSS Grid Generator Styles */
.grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2, 1fr);
gap: 10px;
width: 100%;
min-height: 200px;
padding: 20px;
background: rgba(255, 255, 255, 0.5);
border-radius: 12px;
border: 2px dashed var(--border);
}
.grid-item {
min-height: 60px;
padding: 15px;
background: linear-gradient(135deg, #10b981, #059669);
color: white;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
box-shadow: var(--shadow);
}