/* Tracker UI Styles - iOS Modern */

.bjj-tracker-container {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.bjj-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bjj-section-title h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.5px;
}

.date-badge {
    background: #F2F2F7;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #8E8E93;
}

/* Type Selector */
.bjj-type-selector {
    display: flex;
    background: #F2F2F7;
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 24px;
}

.type-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #8E8E93;
    cursor: pointer;
    transition: all 0.2s;
}

.type-btn.active {
    background: #FFFFFF;
    color: #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Forms */
.tracker-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tracker-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.technique-select label,
.time-input label,
.rounds-input label,
.notes-section label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #8E8E93;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.technique-select select,
.notes-section textarea {
    width: 100%;
    padding: 16px;
    border: none;
    background: #F2F2F7;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 400;
    color: #000;
    margin-bottom: 24px;
    appearance: none;
    font-family: inherit;
}

.technique-select select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.notes-section textarea {
    height: 100px;
    resize: none;
}

.notes-section textarea:focus,
.technique-select select:focus {
    outline: none;
    background: #E5E5EA;
}

/* Counter */
.reps-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F2F2F7;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 24px;
}

.counter-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: #FFFFFF;
    color: #000;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.counter-btn:active {
    transform: scale(0.96);
}

.counter-btn.plus {
    background: #000;
    color: #fff;
}

.counter-display {
    text-align: center;
}

.count-val {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #000;
    line-height: 1;
}

.count-label {
    font-size: 13px;
    color: #8E8E93;
    font-weight: 500;
}

/* Rounds Selector */
.round-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.round-opt {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: #F2F2F7;
    border-radius: 12px;
    font-weight: 600;
    color: #8E8E93;
    cursor: pointer;
    border: none;
}

.round-opt.active {
    background: #000;
    color: #fff;
}

/* Primary Button */
.bjj-btn-primary {
    width: 100%;
    padding: 16px;
    background: #007AFF;
    /* iOS Blue */
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.bjj-btn-primary:active {
    background: #0062CC;
    transform: scale(0.98);
}

.bjj-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Generic Cards --- */
.bjj-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: none;
}

/* History List */
.history-list .history-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-left: none;
    /* Remove colored border */
}

.history-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.history-date {
    font-weight: 600;
    font-size: 15px;
}

.history-type {
    font-size: 13px;
    color: #8E8E93;
    background: #F2F2F7;
    padding: 4px 8px;
    border-radius: 8px;
}

.history-body p {
    font-size: 14px;
    color: #333;
    margin: 4px 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8E8E93;
}