/**
 * Guitar Practice Tracker Public CSS
 * Styled to match existing tool design with dark theme and gold accents
 */

/* Main Container */
.gpt-tracker-container {
    max-width: 800px;
    width: 95%;
    margin: 20px auto;
    padding: 15px;
    background: #1a1a1a url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23303030' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    border-radius: 8px;
    border: 1px solid rgba(217, 159, 38, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(217, 159, 38, 0.1);
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
}

/* Stats Cards */
.gpt-stats-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 20px;
    gap: 15px;
}

.gpt-stat-card {
    background: linear-gradient(145deg, #0a0a0a, #000000);
    border: 1px solid #222;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 15px;
    min-width: 150px;
    flex: 1;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gpt-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d99f26, transparent);
    opacity: 0.7;
}

.gpt-stat-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #d99f26;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(217, 159, 38, 0.3);
    letter-spacing: 1px;
}

.gpt-stat-value {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    font-family: 'DM Sans', monospace;
    letter-spacing: 1px;
}

/* Tracker Main Layout */
.gpt-tracker-main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Form Wrapper */
.gpt-form-wrapper {
    flex: 1;
    min-width: 300px;
}

/* Chart Wrapper */
.gpt-chart-wrapper {
    flex: 2;
    min-width: 300px;
}

/* Practice Form */
.gpt-practice-form-container {
    background: #000000 url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23232323' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    border-radius: 6px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    border: 1px solid #222;
    border-bottom: 1px solid rgba(217, 159, 38, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.gpt-practice-form-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #d99f26;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

.gpt-practice-form .gpt-form-row {
    margin-bottom: 15px;
}

.gpt-practice-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

.gpt-practice-form input[type="date"],
.gpt-practice-form input[type="number"],
.gpt-goal-form input[type="number"] {
    border: 1px solid #333;
    border-radius: 4px;
    background: #2a2a2a;
    color: #ffffff;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.gpt-practice-form input[type="date"]:focus,
.gpt-practice-form input[type="number"]:focus,
.gpt-goal-form input[type="number"]:focus {
    border-color: #d99f26;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2), 0 0 5px rgba(217, 159, 38, 0.4);
    outline: none;
}

.gpt-submit-button {
    background: linear-gradient(135deg, #d99f26, #c78d15);
    color: #000000;
    border: 1px solid rgba(217, 159, 38, 0.8);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(217, 159, 38, 0.2), 0 0 5px rgba(217, 159, 38, 0.1);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.gpt-submit-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Chart Container */
.gpt-chart-container {
    background: #000000 url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23232323' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    border-radius: 6px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    border: 1px solid #222;
    border-bottom: 1px solid rgba(217, 159, 38, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 20px;
    position: relative;
}

.gpt-chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(0,0,0,0) 95%, rgba(217, 159, 38, 0.15) 100%),
        linear-gradient(0deg, rgba(0,0,0,0) 95%, rgba(217, 159, 38, 0.15) 100%);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
}

.gpt-chart-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #d99f26;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

canvas.gpt-practice-chart {
    max-height: 370px !important; /* Reduced from 400px */
}

#gpt-practice-chart {
    background: #111;
    border-radius: 6px;
    padding: 15px;
    margin: 0 -15px;
}

/* Messages */
.gpt-message-container {
    margin-bottom: 15px;
    min-height: 30px;
}

.gpt-success {
    background-color: rgba(28, 200, 138, 0.1);
    color: #1cc88a;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #1cc88a;
}

.gpt-error {
    background-color: rgba(231, 74, 59, 0.1);
    color: #e74a3b;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #e74a3b;
}

.gpt-loading {
    color: #d99f26;
    padding: 10px;
}

/* Streak Counter */
.gpt-streak-container {
    background: #000000;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gpt-streak-display {
    color: #d99f26;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gpt-streak-display::before {
    content: '🔥';
    font-size: 20px;
}

.gpt-golden-streak {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Custom Sliders */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #2a2a2a;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #d99f26;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #ffffff;
}

/* Tab Navigation */
.gpt-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.gpt-tab-btn {
    background: #333;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.gpt-tab-btn:hover {
    background: #444;
    transform: translateY(-2px);
}

.gpt-tab-btn.active {
    background: #d99f26;
    color: #000000;
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(217, 159, 38, 0.3);
}

.gpt-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.gpt-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Chart Legend */
.gpt-chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
    padding: 12px 10px;
    background: #111111;
    border-radius: 4px;
    gap: 20px;
    clear: both; /* Ensure it clears any floats */
    width: 100%; /* Full width */
}

.gpt-legend-item {
    display: flex;
    align-items: center;
    margin: 0 10px;
    padding: 3px 0;
}

.gpt-legend-color {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    margin-right: 8px;
}

.gpt-legend-label {
    font-size: 13px;
    color: #ffffff;
    white-space: nowrap; /* Prevent text wrapping within label */
}

/* Stats Cards */
.gpt-stats-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 20px;
    gap: 15px;
}

.gpt-social-share-container {
    background: #000000;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.gpt-social-share-container h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #d99f26;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.gpt-social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gpt-social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    min-width: 120px;
    gap: 8px;
}

.gpt-social-button svg {
    margin-right: 5px;
    width: 18px;
    height: 18px;
}

.gpt-social-button span {
    white-space: nowrap;
}

.gpt-twitter {
    background-color: #1DA1F2;
}

.gpt-facebook {
    background-color: #3b5998;
}

.gpt-linkedin {
    background-color: #0077b5;
}

.gpt-whatsapp {
    background-color: #25D366;
}

.gpt-twitter:hover, .gpt-twitter:focus {
    background-color: #0c85d0;
    transform: translateY(-2px);
}

.gpt-facebook:hover, .gpt-facebook:focus {
    background-color: #2d4373;
    transform: translateY(-2px);
}

.gpt-linkedin:hover, .gpt-linkedin:focus {
    background-color: #005983;
    transform: translateY(-2px);
}

.gpt-whatsapp:hover, .gpt-whatsapp:focus {
    background-color: #1da851;
    transform: translateY(-2px);
}

.gpt-guest-notice {
    background-color: rgba(217, 159, 38, 0.1);
    border-radius: 4px;
    padding: 10px 15px;
    margin: 15px 0;
    border-left: 3px solid #d99f26;
}

.gpt-guest-notice p {
    margin: 5px 0;
    color: #d99f26;
    font-size: 14px;
}

.gpt-guest-notice a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: underline;
}

.gpt-goals-container {
    background: #000000 url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23232323' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    border-radius: 6px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    border: 1px solid #222;
    border-bottom: 1px solid rgba(217, 159, 38, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-bottom: 20px;
    color: #ffffff;
}

.gpt-goals-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #d99f26;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

.gpt-goal-progress-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.gpt-goal-item {
    flex: 1;
    min-width: 220px;
    background: #111111;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gpt-goal-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #d99f26;
    font-size: 16px;
    font-weight: 600;
}

.gpt-goal-target {
    margin-bottom: 10px;
    font-size: 15px;
    color: #aaaaaa;
}

.gpt-progress-bar-container {
    height: 12px;
    background: #333333;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.gpt-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #d99f26, #ffb938);
    border-radius: 6px;
    transition: width 0.5s ease-in-out;
    box-shadow: 0 0 8px rgba(217, 159, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.gpt-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: scan 2s infinite;
}

@keyframes scan {
    0% { left: -30%; }
    100% { left: 130%; }
}

.gpt-goal-status {
    font-size: 14px;
    text-align: right;
}

.gpt-goal-achieved {
    color: #1cc88a;
    font-weight: bold;
    animation: goalAchieved 1s ease-in-out;
}

.gpt-no-goal-message {
    background: #111111;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 15px;
    text-align: center;
    color: #aaaaaa;
}

.gpt-button {
    background: linear-gradient(135deg, #d99f26, #c78d15);
    color: #000000;
    border: 1px solid rgba(217, 159, 38, 0.8);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(217, 159, 38, 0.2), 0 0 5px rgba(217, 159, 38, 0.1);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.gpt-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: pulse 2s infinite;
}

.gpt-goal-form {
    background: #111111;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.gpt-goal-form .gpt-form-row {
    margin-bottom: 15px;
}

.gpt-goal-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Daily goal achieved animation */
@keyframes goalAchieved {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Week days indicator */
.gpt-week-days-indicator {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.gpt-day-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #333333;
    position: relative;
}

.gpt-day-marker.active {
    background: #d99f26;
    box-shadow: 0 0 10px rgba(217, 159, 38, 0.5);
}

.gpt-day-marker::after {
    content: attr(data-day);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #aaaaaa;
}

.gpt-legend-item .gpt-goal-line {
    display: inline-block;
    width: 18px;
    height: 0;
    border-top: 2px dashed #ff5722;
    margin-right: 8px;
    vertical-align: middle;
}

/* Scanline Effect Base */
.scanline-effect {
  position: relative;
  overflow: hidden;
}

/* Main scanline animation */
.scanline-effect::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px; /* Thin line */
  background: rgba(217, 159, 38, 0.15); /* Using your gold accent color but very transparent */
  animation: scanlines 6s linear infinite;
  top: 0;
  z-index: 10;
  pointer-events: none;
}

/* Subtle static noise overlay */
.scanline-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.03),
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 2px
    );
  opacity: 0.3;
  pointer-events: none;
  z-index: 5;
}

/* Scanline animation */
@keyframes scanlines {
  0% {
    top: -10%;
  }
  100% {
    top: 110%;
  }
}

/* Apply to main containers */
.gpt-tracker-container {
  /* Keep existing styles */
  position: relative;
}

/* Apply the effect to main container and specific panels */
.gpt-tracker-container,
.gpt-chart-container,
.gpt-practice-form-container {
  /* Add the class to enable the effect */
  position: relative;
  overflow: hidden;
}

/* Individual scanline for chart container - moves slower, different opacity */
.gpt-chart-container::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: rgba(217, 159, 38, 0.08);
  animation: scanlines 8s linear infinite; /* Slower */
  top: 0;
  z-index: 10;
  pointer-events: none;
}

/* Individual scanline for form container - more visible, faster movement */
.gpt-practice-form-container::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(217, 159, 38, 0.2);
  animation: scanlines 4s linear infinite; /* Faster */
  top: 0;
  z-index: 10;
  pointer-events: none;
}

/* Apply subtle CRT flicker to stat values */
.gpt-stat-value {
  /* Keep existing styles */
  animation: textFlicker 3s infinite alternate;
}

@keyframes textFlicker {
  0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
    opacity: 1;
  }
  20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
    opacity: 0.9;
  }
}

/* Add boot-up animation to appear when the page loads */
.gpt-tracker-container {
  animation: bootUp 1.5s ease-in-out forwards;
}

@keyframes bootUp {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  20% {
    opacity: 0.5;
  }
  30% {
    opacity: 0.3;
  }
  40% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.3;
  }
  60% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Add subtle line effect to chart container */
.gpt-chart-container {
  background-image: 
    linear-gradient(0deg, rgba(10, 10, 10, 0.5) 50%, transparent 50%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.5) 50%, transparent 50%);
  background-size: 4px 4px;
  background-blend-mode: difference;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .gpt-tracker-main {
        flex-direction: column;
    }
    
    .gpt-form-wrapper,
    .gpt-chart-wrapper {
        width: 100%;
    }
    
    .gpt-stats-container {
        flex-direction: column;
    }
    
    .gpt-stat-card {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .gpt-tabs {
        flex-wrap: wrap;
    }
    
    .gpt-tab-btn {
        flex: 1 0 45%;
        padding: 8px 15px;
        font-size: 13px;
    }

    .gpt-stats-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .gpt-stat-card {
        flex: 1 0 45%; /* 2 cards per row on medium screens */
        min-width: 130px;
    }

    .gpt-social-button {
        flex: 1 0 45%;
        min-width: 130px;
    }

    .gpt-goal-progress-container {
        flex-direction: column;
    }
    
    .gpt-goal-item {
        width: 100%;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .gpt-tracker-container {
        width: 98%; /* Reduced from 95% to 98% for less side margins */
        margin: 15px auto; /* Reduced top/bottom margin from 20px to 15px */
        padding: 10px; /* Keep your existing padding */
    }
    
    .gpt-practice-form-container,
    .gpt-chart-container,
    .gpt-stats-container {
        padding: 15px;
    }
    
    .gpt-practice-form-container h3,
    .gpt-chart-container h3 {
        font-size: 16px;
    }
    
    .gpt-stat-value {
        font-size: 18px;
    }
    
    .gpt-submit-button {
        width: 100%;
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .gpt-tab-btn {
        flex: 1 0 100%;
        margin-bottom: 5px;
    }

    .gpt-stat-card {
        flex: 1 0 100%; /* 1 card per row on small screens */
    }

    .gpt-social-button {
        flex: 1 0 100%;
    }
    
    .gpt-social-button span {
        font-size: 13px;
    }
}

/* Add better touch handling for mobile */
@media (hover: none) {
    .gpt-submit-button:hover,
    .gpt-tab-btn:hover {
        transform: none;
    }

    input[type="range"]::-webkit-slider-thumb {
        width: 24px; /* Larger touch target */
        height: 24px;
    }
}

/* BPM Tracking Styles - Add to the end of guitar-practice-tracker-public.css */

/* BPM Form Container */
.gpt-bpm-form-container {
    background: #000000 url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23232323' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    border-radius: 6px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    border: 1px solid #222;
    border-bottom: 1px solid rgba(217, 159, 38, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-bottom: 20px;
}

.gpt-bpm-form-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #d99f26;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

/* BPM Input Groups */
.gpt-date-row {
    margin-bottom: 10px; /* Adjust the value as needed */
}

.gpt-bpm-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: space-between;
}

.gpt-bpm-input-group {
    flex: 0 0 auto;    
    width: 150px;     
    text-align: center;
}

.gpt-bpm-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.gpt-bpm-form input[type="date"],
.gpt-bpm-form input[type="number"] {
    border: 1px solid #333;
    border-radius: 4px;
    background: #2a2a2a;
    color: #ffffff;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    padding: 8px;
}

.gpt-bpm-form input[type="date"]:focus,
.gpt-bpm-form input[type="number"]:focus {
    border-color: #d99f26;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2), 0 0 5px rgba(217, 159, 38, 0.4);
    outline: none;
}

.gpt-bpm-input-group input[type="number"] {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    box-sizing: border-box !important;
}

/* BPM Chart Container */
.gpt-bpm-chart-container {
    background: #000000 url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23232323' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    border-radius: 6px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    border: 1px solid #222;
    border-bottom: 1px solid rgba(217, 159, 38, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.gpt-bpm-chart-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #d99f26;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

.gpt-bpm-chart {
    max-height: 370px !important;
    background: #111;
    border-radius: 6px;
    padding: 15px;
    margin: 0 -15px;
}

/* BPM Message Container */
.gpt-bpm-message-container {
    margin-bottom: 15px;
    min-height: 30px;
}

/* Combined Tracker Layout */
.gpt-bmp-tracker-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(217, 159, 38, 0.2);
}

.gpt-button-center {
    text-align: center;
}

.gpt-social-share-container {
    display: none !important;
}

/* Responsive Design for BPM */
@media screen and (max-width: 768px) {
    .gpt-bpm-inputs {
        flex-direction: column;
        gap: 15px;
    }
    
    .gpt-bpm-input-group {
        text-align: left;
    }
    
    .gpt-bpm-form input[type="number"] {
        width: 100% !important;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .gpt-bpm-form-container,
    .gpt-bpm-chart-container {
        padding: 15px;
    }
    
    .gpt-bpm-form-container h3,
    .gpt-bmp-chart-container h3 {
        font-size: 16px;
    }
}