/home/awneajlw/www/codestechvista.com/assets/css/style.css
/* Custom CSS for Opti-Vision Eye Clinic */
:root {
--primary-color: #4f46e5;
--secondary-color: #7c3aed;
--accent-color: #10b981;
--text-dark: #1f2937;
--text-light: #6b7280;
--bg-light: #f8fafc;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
color: var(--text-dark);
}
/* Navigation */
.navbar {
padding: 1rem 0;
transition: all 0.3s ease;
}
.navbar-brand {
font-size: 1.5rem;
color: var(--primary-color) !important;
}
.nav-link {
font-weight: 500;
color: var(--text-dark) !important;
transition: color 0.3s ease;
}
.nav-link:hover {
color: var(--primary-color) !important;
}
/* Hero Section */
.hero-section {
background: var(--primary-color);
min-height: 100vh;
display: flex;
align-items: center;
position: relative;
overflow: hidden;
}
.hero-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
opacity: 0.3;
}
.hero-section .container {
position: relative;
z-index: 2;
}
.hero-image img {
border-radius: 1rem;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}
/* Buttons */
.btn {
border-radius: 0.5rem;
font-weight: 600;
padding: 0.75rem 1.5rem;
transition: all 0.3s ease;
}
.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
}
.btn-primary:hover {
background-color: var(--secondary-color);
border-color: var(--secondary-color);
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}
.btn-outline-light:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}
/* Cards */
.card {
border-radius: 1rem;
transition: all 0.3s ease;
border: none;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}
.service-icon {
width: 80px;
height: 80px;
background: var(--primary-color);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
color: white;
}
.price-tag {
margin-top: 1rem;
padding: 0.5rem 1rem;
background: var(--bg-light);
border-radius: 2rem;
display: inline-block;
}
/* Doctor Cards */
.doctor-image img {
object-fit: cover;
border: 4px solid var(--bg-light);
}
/* Sections */
section {
padding: 4rem 0;
}
.bg-light {
background-color: var(--bg-light) !important;
}
/* Footer */
footer {
background-color: #111827 !important;
}
.social-links a {
display: inline-block;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
text-align: center;
line-height: 40px;
transition: all 0.3s ease;
}
.social-links a:hover {
background: var(--primary-color);
transform: translateY(-2px);
}
/* Forms */
.form-control {
border-radius: 0.5rem;
border: 2px solid #e5e7eb;
padding: 0.75rem 1rem;
transition: all 0.3s ease;
}
.form-control:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}
/* Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fade-in-up {
animation: fadeInUp 0.6s ease-out;
}
/* Responsive Design */
@media (max-width: 768px) {
.hero-section {
text-align: center;
padding: 2rem 0;
}
.display-4 {
font-size: 2.5rem;
}
.btn-lg {
padding: 0.75rem 1.5rem;
font-size: 1rem;
}
/* Navigation responsive */
.navbar-nav {
text-align: center;
margin-top: 1rem;
}
.nav-link {
padding: 0.5rem 0;
border-bottom: 1px solid #e5e7eb;
}
/* Cards responsive */
.card {
margin-bottom: 1rem;
}
/* Form responsive */
.form-control {
font-size: 16px; /* Prevent zoom on iOS */
}
}
@media (max-width: 480px) {
.display-4 {
font-size: 2rem;
}
.hero-section {
padding: 1rem 0;
}
.btn-lg {
padding: 0.5rem 1rem;
font-size: 0.9rem;
}
/* Table responsive */
.table-responsive {
font-size: 14px;
}
/* Container padding */
.container {
padding-left: 15px;
padding-right: 15px;
}
}
@media (max-width: 320px) {
.display-4 {
font-size: 1.8rem;
}
.btn-lg {
padding: 0.4rem 0.8rem;
font-size: 0.8rem;
}
/* Small screens adjustments */
.card-body {
padding: 1rem;
}
.form-control {
font-size: 14px;
}
}
/* Loading Spinner */
.spinner {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: #fff;
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Alert Styles */
.alert {
border-radius: 0.5rem;
border: none;
}
.alert-success {
background-color: #d1fae5;
color: #065f46;
}
.alert-danger {
background-color: #fee2e2;
color: #991b1b;
}
.alert-info {
background-color: #dbeafe;
color: #1e40af;
}
/* Table Styles */
.table {
border-radius: 0.5rem;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.table thead th {
background-color: var(--primary-color);
color: white;
border: none;
font-weight: 600;
}
.table tbody tr:hover {
background-color: var(--bg-light);
}
/* Dashboard Styles */
.dashboard-card {
background: white;
border-radius: 1rem;
padding: 2rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
border: none;
transition: all 0.3s ease;
}
.dashboard-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.stat-card {
text-align: center;
padding: 2rem;
}
.stat-number {
font-size: 2.5rem;
font-weight: 700;
color: var(--primary-color);
}
.stat-label {
color: var(--text-light);
font-weight: 500;
margin-top: 0.5rem;
}