freesched/public/css/styles.css

380 lines
7.3 KiB
CSS

/* Custom styles to modernize and align with Calendly-inspired design */
:root {
--primary-color: #007bff; /* Blue from Calendly */
--secondary-color: #6c757d; /* Gray for muted elements */
--light-bg: #f8f9fa; /* Light background for modern look */
--shadow-color: rgba(0, 0, 0, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arial', sans-serif; /* Matches Calendly font */
}
.container-fluid {
max-width: 1000px;
margin: 20px auto;
background-color: #fff;
border-radius: 6px;
box-shadow: 0 2px 4px var(--shadow-color);
overflow: hidden;
}
.sidebar {
width: 30%;
padding: 20px;
border-right: 1px solid #e1e8ed;
text-align: center;
background-color: #fff;
}
.profile-pic {
width: 80px;
height: 80px;
object-fit: cover;
border-radius: 50%;
margin-bottom: 10px;
border: 2px solid #fff;
box-shadow: 0 2px 4px var(--shadow-color);
}
.sidebar h2 {
font-size: 1.25rem;
color: #333;
margin-bottom: 5px;
font-weight: 600;
}
.sidebar h3 {
font-size: 0.9rem;
color: #666;
margin-bottom: 5px;
font-weight: 400;
}
.duration {
font-size: 0.875rem;
color: #666;
}
.main-content {
width: 70%;
padding: 20px;
position: relative;
}
.calendar-header h1 {
font-size: 1.5rem;
color: #333;
font-weight: 700;
margin-bottom: 10px;
}
.month-nav {
display: flex;
justify-content: space-between;
font-size: 1rem;
color: #333;
padding: 0.5rem 0;
border-bottom: 1px solid #e1e8ed;
}
.month-nav button {
color: var(--secondary-color);
transition: color 0.3s ease;
}
.month-nav button:hover {
color: var(--primary-color);
}
.days-of-week, .dates {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 5px;
text-align: center;
}
.days-of-week span {
font-weight: bold;
color: #666;
padding: 5px;
}
.dates .date-item {
padding: 10px;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}
.dates .date-item.disabled {
cursor: not-allowed;
color: var(--secondary-color);
opacity: 0.5;
}
.dates .date-item:hover {
background-color: #f0f8ff;
transform: scale(1.05);
}
.dates .date-item.available {
background-color: #e9f2ff;
border: 2px solid var(--primary-color);
font-weight: 600;
}
.dates .date-item.selected {
background-color: #0d6efd !important;
color: #fff !important;
border-radius: 6px;
font-weight: 600;
border: none !important;
}
.dates .date-item.current {
background-color: #e9f2ff;
border: 2px solid var(--primary-color);
font-weight: 600;
}
.time-slot {
font-size: 1rem;
padding: 0.75rem 1.5rem;
transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.time-slot.available {
background-color: #e9f2ff;
border-color: var(--primary-color);
color: var(--primary-color);
}
.time-slots .text-muted {
color: #6c757d; /* Muted text color, matching Calendly */
font-size: rem; /* Slightly larger font, e.g., 20px instead of 16px */
font-weight: bold; /* Bold text */
padding: 2.2rem 0;
text-align: center;
}
.time-slot.available:hover, .time-slot:hover {
background-color: var(--primary-color);
color: #fff;
transform: scale(1.05);
}
.timezone {
font-size: 0.875rem;
color: #666;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
#timezone {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
.powered-by {
font-size: 0.75rem;
color: #666;
opacity: 0.8;
transition: opacity 0.3s ease;
z-index: 10;
background-color: transparent;
padding: 5px;
margin-left: auto; /* Push to the right */
pointer-events: auto;
}
.powered-by.text-end {
text-align: right;
}
.powered-by a {
color: inherit;
text-decoration: none;
cursor: pointer;
}
.powered-by a.github-link {
display: inline-flex;
align-items: center;
background-color: #e9e9e9;
color: #333;
padding: 8px 12px;
border-radius: 20px;
font-size: 14px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
white-space: nowrap;
}
.octocat-icon {
margin-right: 8px;
display: flex;
align-items: center;
}
.octocat-icon svg {
fill: #333;
}
.powered-by:hover {
opacity: 1;
}
/* Admin-specific powered-by styling */
.admin-powered-by {
position: absolute;
bottom: 20px;
right: 20px;
margin-top: 0;
}
/* Index-specific powered-by styling */
.index-powered-by {
text-align: right;
margin-top: 0;
margin-left: auto;
display: inline-flex;
justify-content: flex-end;
align-items: center;
flex-shrink: 0;
}
/* Add clearance for elements with flex classes */
.d-flex.flex-column.gap-2.mt-3 {
margin-bottom: 50px; /* Increased margin to ensure these elements don't overlap with the powered-by button */
}
/* Admin-specific styles */
#admin .calendar {
margin-bottom: 20px;
}
#admin .form-control, #admin .form-select {
border-radius: 6px;
}
#admin .btn-primary, #admin .btn-danger {
border-radius: 4px;
}
#availabilityList .list-group-item {
border-radius: 4px;
margin-bottom: 5px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.container-fluid {
margin: 10px;
border-radius: 6px;
}
.sidebar, .main-content {
width: 100%;
}
.sidebar {
border-right: none;
border-bottom: 1px solid #e1e8ed;
}
#admin .row {
flex-direction: column;
}
#admin .col-md-6 {
width: 100%;
}
.powered-by {
position: relative;
bottom: auto;
right: auto;
text-align: center;
margin-top: 30px;
}
.admin-powered-by {
position: relative;
bottom: auto;
right: auto;
text-align: right;
margin-top: 20px;
}
.index-powered-by {
position: relative;
text-align: right;
margin-left: auto;
display: inline-flex;
justify-content: flex-end;
}
}
/* Sidebar buttons styling */
.sidebar .btn {
padding: 12px 20px;
font-size: 1.1rem;
font-weight: 500;
border: none;
transition: all 0.3s ease;
}
.sidebar .btn-success {
background-color: #2e8b57; /* Money green color */
border-color: #2e8b57;
}
.sidebar .btn-success:hover {
background-color: #267349;
border-color: #267349;
}
.sidebar .btn-warning {
background-color: #ffc107;
border-color: #ffc107;
color: #212529;
}
.sidebar .btn-warning:hover {
background-color: #e0a800;
border-color: #e0a800;
}
.sidebar .btn-danger {
background-color: #dc3545;
border-color: #dc3545;
}
.sidebar .btn-danger:hover {
background-color: #c82333;
border-color: #c82333;
}
/* Dev Tools button styling */
.sidebar .btn-info {
background-color: #00bfff; /* Neon blue color */
border-color: #00bfff;
color: white;
box-shadow: 0 0 10px rgba(0, 191, 255, 0.5); /* Neon glow effect */
}
.sidebar .btn-info:hover {
background-color: #0099cc;
border-color: #0099cc;
box-shadow: 0 0 15px rgba(0, 191, 255, 0.7); /* Enhanced glow on hover */
}
.time-slots {
margin-bottom: 50px; /* Increased margin to ensure time slots don't overlap with the powered-by button */
}