/* Main CSS file for Fitness Tracker */

body {
    background-color: #f8f9fa;
    font-size: 16px;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card-header h5 {
    font-size: 1.3rem;
    font-weight: 600;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.btn {
    font-size: 1rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.metric-card .card-body {
    padding: 1.5rem;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    opacity: 0.9;
}

.table {
    font-size: 1rem;
}

.table th {
    font-weight: 600;
    font-size: 1.1rem;
}

.form-control {
    font-size: 1rem;
}

.form-label {
    font-size: 1rem;
    font-weight: 500;
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff !important;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 400px;
    margin: 1rem 0;
}

/* Modern Photo Gallery Styles */
.modern-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.modern-photo-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.modern-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.photo-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-thumbnail {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.photo-image-container:hover .photo-thumbnail {
    transform: scale(1.05);
}

.photo-card-body {
    padding: 1rem;
}

.photo-info {
    margin-bottom: 0.75rem;
}

.photo-angle {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.25rem;
}

.photo-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.photo-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Three dots mobile menu */
.three-dots-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.three-dots-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.three-dots-icon span {
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 50%;
}

/* Mobile menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background-color: #fff;
    z-index: 1050;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 2rem 1rem;
    overflow-y: auto;
    height: 100%;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.mobile-menu-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.mobile-menu-item.active {
    background-color: #e7f3ff;
    color: #0d6efd;
}

.mobile-menu-item i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .metric-value {
        font-size: 1.8rem;
    }
    
    .metric-label {
        font-size: 0.9rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    /* Photo grid mobile */
    .modern-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .photo-image-container {
        height: 180px;
    }
    
    .photo-card-body {
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .modern-photo-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .photo-image-container {
        height: 160px;
    }
    
    /* Mobile Portrait Optimizations */
    .metric-card .card-body {
        padding: 1rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .metric-label {
        font-size: 0.8rem;
    }
}
