/* ============================= */
/* THEME VARIABLES */
/* ============================= */
:root {
  /* Brand Colors */
  --color-primary: #ff4d4d;        /* Bright red */
  --color-secondary: #ff8c00;      /* Orange */
  --color-accent: #ffd700;         /* Gold (for pins) */
  --color-danger: #d32f2f;         /* Dark red */
  --color-success: #388e3c;        /* Green */

  /* Text & UI */
  --text-primary: #333;
  --text-light: #999;
  --text-dark: #555;
  --text-white: #ffffff;
  --text-black: black;
  --text-link: #ff8c00;
  --text-link-hover: #ff8c00;

  /* Backgrounds */
  --bg-body: #f4f4f4;
  --bg-card: #ffffff;
  --bg-calendar-day: #eee; /* Solid gray */
  --bg-calendar-day-selected: yellow; 
  --bg-calendar-day-missed: #f44336; /* Solid red */
  --bg-calendar-day-completed: #4caf50; /* Solid green */
  --bg-calendar-day-currentday: #2196f3; /* Solid blue */
  --bg-calendar-day-disabled: #b0b0b0; /* Solid grey */
  --bg-header: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --bg-button: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --bg-button-hover: linear-gradient(135deg, #ff3333, #ff6f00);
  --bg-highlight: #fff3e0;
  --bg-highlight-noworkout: #fdeded;
  --bg-highlight-complete: #e8f5e9;
  --bg-sidebar: #333;
  --bg-sidebar-hover: #555;
  --bg-disabled: #e0e0e0;
  --bg-table-header: #f2f2f2;

  /* Borders & Shadows */
  --border-primary: #ff0000;        /* Red border (brand) */
  --border-button: #fff;
  --border-input: #ccc;
  --border-table: #000;
  --shadow-soft: rgba(0, 0, 0, 0.2);
  --shadow-medium: rgba(0, 0, 0, 0.3);
  --shadow-glow: rgba(255, 77, 77, 0.5);
}

/* Dark Theme Example */
[data-theme="dark"] {
  --text-primary: #f0f0f0;
  --text-light: #aaaaaa;
  --text-black: #ffffff;
  --text-white: #ffffff;
  --text-link: #ffad33;
  --bg-body: #1a1a1a;
  --bg-card: #2d2d2d;
  --bg-calendar-day: #7a7171; /* Dark gray */
  --bg-calendar-day-selected: yellow; 
  --bg-calendar-day-missed: #f44336; /* Solid red */
  --bg-calendar-day-completed: #4caf50; /* Solid green */
  --bg-calendar-day-currentday: #2196f3; /* Solid blue */
  --bg-header: linear-gradient(135deg, #e53935, #ff6f00);
  --bg-button: linear-gradient(135deg, #e53935, #ff6f00);
  --bg-button-hover: linear-gradient(135deg, #c62828, #e65100);
  --bg-highlight: #5d4037;
  --bg-highlight-noworkout: #6d1b1b;
  --bg-highlight-complete: #1b5e20;
  --bg-sidebar: #222;
  --bg-sidebar-hover: #444;
  --bg-disabled: #424242;
  --bg-table-header: #37474f;
  --border-input: #555;
  --border-table: #555;
  --shadow-soft: rgba(0, 0, 0, 0.4);
  --shadow-medium: rgba(0, 0, 0, 0.5);
}

/* ============================= */
/* MAIN STYLES */
/* ============================= */
a {
    color: var(--text-link);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

.before, .after {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--border-primary);
    box-shadow: 0 2px 5px var(--shadow-soft);
    position: relative;
}

.before::after, .after::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    position: absolute;
    top: -5px;
    right: -5px;
    box-shadow: 0 0 5px var(--shadow-medium);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    padding-top: 50px;
    background-color: var(--bg-body);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.bold, .important {
    background-color: var(--bg-highlight);
    text-decoration: none;
    font-weight: bold;
}

.highlight {
	background-color: var(--bg-highlight);
    padding: 10px;
    border-left: 5px solid var(--color-secondary);
    margin: 10px 0;
    border-radius: 5px;
}

.highlight-noworkout {
    background-color: var(--bg-highlight-noworkout);
    padding: 10px;
    border-left: 5px solid var(--color-danger);
    margin: 10px 0;
    border-radius: 5px;
}

.highlight-complete {
    background-color: var(--bg-highlight-complete);
    padding: 10px;
    border-left: 5px solid var(--color-success);
    margin: 10px 0;
    border-radius: 5px;
}

.call-to-action {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: var(--color-primary);
    color: var(--text-white);
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.call-to-action:hover {
    transform: scale(1.05);
}

.caption {
    font-family: 'Amatic SC', cursive;
    font-size: 1.8em;
    color: var(--border-primary);
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid var(--border-input);
    border-radius: 4px;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-info {
    margin-top: 20px;
    text-align: center;
}

.contact-info p {
    margin: 5px 0;
    color: var(--text-primary);
}

.content {
    padding: 20px;
}

footer {
    bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-top: auto;
}

h1 {
    font-size: 2.5em;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 1.8em;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 10px;
    margin-top: 20px;
    margin-bottom: 15px;
}

header {
    text-align: center;
    padding: 20px 0;
    background: var(--bg-header);
    color: var(--text-white);
    border-radius: 10px;
    margin-bottom: 20px;
}

li {
    margin: 10px 0;
    font-size: 1.1em;
}

.menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-button);
    padding: 10px 20px;
    z-index: 1000;
    color: var(--text-white);
    border: 2px solid var(--border-button);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-soft);
}

.not-available {
    background-color: var(--bg-disabled);
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

p {
    font-size: 1.1em;
    margin: 15px 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.photo-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-medium);
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

.photo-item:nth-child(odd) {
    transform: rotate(5deg);
}

.photo-item:nth-child(even) {
    transform: rotate(-5deg);
}

.photo-item:hover {
    transform: rotate(0deg);
}

.photo-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse:hover {
    animation: none;
}

.pump-button {
    overflow: hidden;
    margin: 2px;
    display: inline-block;
    font-size: 1.0em;
    font-weight: bold;
    color: var(--text-white);
    background: var(--bg-button);
    border: 2px solid var(--border-button);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-soft);
}

.pump-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px var(--shadow-medium), 0 0 10px var(--shadow-glow);
    background: var(--bg-button-hover);
}

.pump-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px var(--shadow-soft);
}

.sections-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.section-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 45%;
    min-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px var(--shadow-medium);
}

.section-card h2 {
    font-size: 1.8em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-card p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    right: -250px;
    background-color: var(--bg-sidebar);
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
    z-index: 999;
}

#sidebar a.current-page {
    font-weight: bold;
    cursor: default;
    color: var(--color-secondary);
    pointer-events: none;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 20px;
    color: var(--text-white);
    display: block;
    font-weight: normal;
    pointer-events: auto;
}

.sidebar a:hover {
    background-color: var(--bg-sidebar-hover);
}

.sidebar.open {
    right: 0;
}

.swal2-confirm,
.swal2-cancel {
    font-size: 1.0em;
    display: inline-block;
    font-weight: bold;
    color: var(--text-white);
    background: var(--bg-button);
    border: 2px solid var(--border-button);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-soft);
}

.swal2-confirm:hover {
    background: #c22 !important;
}

.swal2-cancel:hover {
    background: #256db0 !important;
}

.swal2-select {
    font-size: 1.0em;
    padding: 8px !important;
    border-radius: 8px !important;
}

table {
    border-collapse: collapse;
    width: 100%;
}

td:first-child,
th {
    background-color: var(--bg-table-header);
}

td img {
    max-width: 100%;
    height: auto;
}

th, td {
    border: 1px solid var(--border-table);
    padding: 8px;
    text-align: left;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: var(--text-white);
    user-select: none;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.theme-toggle i {
    transition: transform 0.4s ease;
}

.theme-toggle:hover i {
    transform: rotate(20deg);
}

.theme-toggle.active i {
    transform: rotate(360deg);
}

ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* ============================= */
/* MEDIA QUERIES */
/* ============================= */
@media (max-width: 600px) {
    .before, .after {
        width: 200px;
        height: 150px;
    }

    h1 { font-size: 2em; }
    h2 { font-size: 1.5em; }
    p, li { font-size: 1em; }

    .pump-button {
        font-size: 1em;
        padding: 10px 20px;
    }

    .photo-container {
        flex-direction: column;
        align-items: center;
    }

    .photo-item {
        transform: none;
    }
}

@media (min-width: 768px) {
    body {
        max-width: 50%;
    }

    .pump-button {
        padding: 12px 24px;
    }
}

@media (max-width: 1200px) {
    .sections-container {
        flex-direction: column;
        align-items: center;
    }
    .section-card {
        width: 80%;
    }
}
@media (max-width: 400px) {
    .section-card h2 {
        font-size: 1.5em;
    }
    .section-card h3 {
        font-size: 1.2em;
    }
}
