/* Main CSS file for Memory Album */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #5a287d;
    --secondary-color: #ff9ca4;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --white: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.brand-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.brand-text {
    font-size: 1.4rem;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:before {
    width: 70%;
}

.nav-link.btn {
    padding: 0.375rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-link.btn:hover:before {
    width: 0;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #471f64; /* Darker shade of primary color (#5a287d) */
    border-color: #471f64;
    color: var(--white) !important;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #e5808a; /* Darker shade of secondary color (#ff9ca4) */
    border-color: #e5808a;
    color: var(--white) !important;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: var(--white);
}

.btn-success:hover, .btn-success:focus {
    background-color: #218838; /* Darker shade of success color */
    border-color: #1e7e34;
    color: var(--white) !important;
}

.card {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

footer {
    border-top: 1px solid var(--medium-gray);
}

/* Form styling */
.form-control {
    border-radius: 20px;
    padding: 10px 15px;
    border: 1px solid var(--medium-gray);
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(90, 40, 125, 0.25);
    border-color: var(--primary-color);
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Alert styling */
.alert {
    border-radius: 8px;
}

/* Custom checkboxes and radio buttons */
.custom-radio .custom-control-label::before {
    border-radius: 50%;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Dashboard sidebar */
.sidebar {
    background-color: var(--white);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
}

.sidebar-link {
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 5px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.sidebar-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Timeline styling */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
    margin-left: -1px;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-content {
    position: relative;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.timeline-time {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .timeline:before {
        left: 20px;
    }
    
    .timeline-content {
        margin-left: 40px;
    }
}
