/* Boxing System Styles */

/* Home Page Styles */
.boxing-home {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

.boxing-home h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
}

.boxing-home p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #007bff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Measurements Page Styles */
.measurements-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.measurements-header {
    text-align: center;
    margin-bottom: 40px;
}

.measurements-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.measurements-header p {
    color: #666;
    font-size: 1.1rem;
}

.photo-section {
    text-align: center;
    margin-bottom: 40px;
}

.photo-with-overlay {
    position: relative;
    display: inline-block;
    max-width: 800px;
    width: 100%;
}

#photoCanvas {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.measurement-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.label {
    position: absolute;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.label-a {
    top: 35%;
    left: 15%;
}

.label-b {
    top: 25%;
    right: 15%;
}

.label-dbl {
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
}

.label-ed {
    top: 50%;
    left: 10%;
}

.label-pd {
    top: 45%;
    right: 10%;
}

.label-datum {
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 193, 7, 0.9);
}

.captured-photo {
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.measurements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.measurement-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.measurement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.measurement-card h3 {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.measurement-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.measurement-value-text {
    font-size: 2rem;
}

.measurement-unit {
    font-size: 1rem;
    color: #999;
}

.measurement-description {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
    line-height: 1.4;
}

.diagram-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.diagram-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.diagram-section p {
    color: #666;
    margin-bottom: 20px;
}

.diagram-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
}

.no-data h2 {
    font-size: 2rem;
    color: #666;
    margin-bottom: 20px;
}

.no-data p {
    color: #999;
    margin-bottom: 30px;
}

/* Button Styles */
.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* Large button variant for home page */
.cta-buttons .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Boxing Overlay Styles */
.overlay-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.canvas-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

#overlayCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
