seniorcoder's picture
خیلی خفن خیلی خلی یه سایت حرفه ای می خواهم
2afbd57 verified
Raw History Blame Contribute Delete
3.9 kB
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
:root {
--primary: #4f46e5;
--primary-light: #6366f1;
--primary-dark: #4338ca;
--secondary: #10b981;
--danger: #ef4444;
--warning: #f59e0b;
--info: #3b82f6;
--dark: #1f2937;
--light: #f9fafb;
--radius: 12px;
--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);
}
body {
font-family: 'Inter', sans-serif;
background-color: #f8fafc;
color: #1e293b;
line-height: 1.6;
}
@media (prefers-color-scheme: dark) {
:root {
--dark: #f8fafc;
--light: #1e293b;
}
body {
background-color: #0f172a;
color: #f8fafc;
}
}
/* Enhanced button styles */
.btn {
@apply px-4 py-2 rounded-md font-medium transition-colors duration-200;
}
.btn-primary {
@apply bg-indigo-600 text-white hover:bg-indigo-700;
}
.btn-secondary {
@apply bg-green-600 text-white hover:bg-green-700;
}
.btn-danger {
@apply bg-red-600 text-white hover:bg-red-700;
}
/* Card enhancements */
.card {
@apply bg-white rounded-xl shadow-sm overflow-hidden transition-all duration-300 hover:shadow-md;
}
.card-header {
@apply px-6 py-4 border-b border-gray-100 bg-gray-50;
}
.card-body {
@apply p-6;
}
/* Form styles */
.form-control {
@apply block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500;
}
.form-label {
@apply block text-sm font-medium text-gray-700 mb-1;
}
/* Alert styles */
.alert {
@apply p-4 rounded-md border;
}
.alert-success {
@apply bg-green-50 border-green-200 text-green-700;
}
.alert-danger {
@apply bg-red-50 border-red-200 text-red-700;
}
.alert-warning {
@apply bg-yellow-50 border-yellow-200 text-yellow-700;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: #a1a1a1;
}
/* Animation for cards */
.card-hover {
transition: all 0.3s ease;
}
.card-hover:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
/* Custom tooltip */
.tooltip {
position: relative;
display: inline-block;
}
.tooltip .tooltip-text {
visibility: hidden;
width: 120px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -60px;
opacity: 0;
transition: opacity 0.3s;
}
.tooltip:hover .tooltip-text {
visibility: visible;
opacity: 1;
}
/* Custom checkbox */
.custom-checkbox {
position: relative;
padding-left: 25px;
cursor: pointer;
user-select: none;
}
.custom-checkbox input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
.checkmark {
position: absolute;
top: 0;
left: 0;
height: 18px;
width: 18px;
background-color: #fff;
border: 1px solid #d1d5db;
border-radius: 4px;
}
.custom-checkbox:hover input ~ .checkmark {
background-color: #f3f4f6;
}
.custom-checkbox input:checked ~ .checkmark {
background-color: #4f46e5;
border-color: #4f46e5;
}
.checkmark:after {
content: "";
position: absolute;
display: none;
}
.custom-checkbox input:checked ~ .checkmark:after {
display: block;
}
.custom-checkbox .checkmark:after {
left: 6px;
top: 2px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}