:root {
    --bg-color: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --brand-color: #34495E;
    --accent-color: #3498DB;
    --danger-color: #E74C3C;
    --success-color: #27AE60;
    --border-color: #ECF0F1;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --radius-sm: 8px;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Fix missing variables */
    --primary: var(--accent-color);
    --accent: var(--accent-color);
    --light: #FFFFFF;
    --shadow: var(--shadow-soft);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-color);
    margin: 0;
    padding: 100px 15px 120px; /* Restored padding */
    color: #333;
    line-height: 1.5;
}

/* --- Header Classic (Dark) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 85px; /* Taller header */
    background: linear-gradient(135deg, #1e1e1e, #323232);
    color: white; /* White text for dark header */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-bottom: none;
    backdrop-filter: none;
}

.app-title {
    display: block; /* Show title again */
    position: absolute;
    top: 8px;
    width: 100%;
    text-align: center;
    font-size: 10px;
    margin: 0;
    pointer-events: none;
    opacity: 0.5;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1); /* Slight bg */
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.2s;
}

.team-score .team-name {
    font-size: 12px; /* Increased for visibility */
    font-weight: 900;
    color: white; /* Pure white */
    opacity: 1; /* Full opacity */
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.team-score .score {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: 0;
    display: flex; align-items: baseline; gap: 4px;
}

.score-box.center .label {
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.score-box.center .value {
    font-size: 20px;
    color: var(--accent-color);
    font-weight: 800;
}

/* --- Buttons & Typography --- */
button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    touch-action: manipulation;
}

h3 {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    margin: 20px 0 10px;
    text-align: center;
}

/* --- Interactive Elements --- */
/* --- Interactive Elements --- */
/* Removing specific ID styles to rely on .header-btn class instead to avoid conflicts */
/* The actual elements in HTML have inline styles for position that override this slightly, 
   but we style the look here */

/* --- Sections --- */
/* --- Sections --- */
.section {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

/* --- Toggle Buttons --- */
.team-toggle button,
.declarer-toggle button,
.bidding-buttons button,
.high-bidding-buttons button,
.decl-buttons button,
.last-10-btn,
.valat-btn {
    padding: 12px 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    box-shadow: var(--shadow-soft);
}

.team-toggle button.active,
.declarer-toggle button.active,
.bidding-buttons button.active,
.high-bidding-buttons button.active,
.last-10-btn.active,
.valat-btn.active,
.decl-buttons button.active {
    background: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

/* --- Card Buttons --- */
.card-buttons button {
    height: 56px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
}

.card-buttons button:active {
    background: var(--border-color);
    transform: scale(0.96);
}

button.disabled-look {
    opacity: 0.3;
    background: #F0F2F5 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #BDC3C7 !important;
    pointer-events: none;
}


/* --- Trump Buttons (Specifics) --- */
.trump-buttons button {
    color: var(--accent-color);
    background: #ebf5fb; /* Light Blue tint */
    border-color: transparent;
}

/* --- Split Grid helper --- */
.split-grid-container {
    display: flex;
    gap: 12px;
}

.split-column {
    flex: 1;
    background: rgba(255,255,255, 0.5);
    padding: 8px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.split-column h4 {
    text-align: center;
    margin: 4px 0 8px;
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Bidding Text --- */
.current-selection {
    text-align: center;
    font-weight: 700;
    color: var(--brand-color);
    margin: 10px 0;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* --- Log Chips --- */
.points-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 10px 0;
}

.points-list p {
    margin: 0;
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.points-list p:active {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
    transform: scale(0.95);
}


/* --- Footer Actions --- */
.footer-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 900;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.finish-button,
.new-game-btn {
    padding: 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.finish-button {
    background: var(--text-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.new-game-btn {
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.finish-button:disabled {
    background: #BDC3C7;
    box-shadow: none;
    cursor: not-allowed;
}


/* --- Modals --- */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(44, 62, 80, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    width: 85%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
}

.modal-content h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 18px;
    letter-spacing: -0.5px;
}


/* --- History Entries --- */
#history-list > div {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color);
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-soft);
    padding: 16px !important;
    margin-bottom: 12px !important;
}

/* --- Footer Info --- */
.app-footer {
    background-color: transparent;
    padding: 20px 20px 100px;
    text-align: center;
    border-top: none;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 11px;
}

.app-footer a { color: var(--text-primary); font-weight: 600; }

/* --- Ads --- */
.ad-banner-container {
    margin: 20px 0;
}
.ad-placeholder {
    width: 320px; height: 50px;
    background: #f0f0f0;
    border: none;
    border-radius: var(--radius-sm);
    color: #ccc;
    font-size: 10px;
}

/* --- Shake Animation --- */
@keyframes shake {
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
}
.shake-error {
    animation: shake 0.3s;
    background: #FDEDEC !important;
    border-color: #E74C3C !important;
}

/* --- Utils & Refactoring Classes --- */
.hidden { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.w-full { width: 100%; }
.relative { position: relative; }
.text-center { text-align: center; }

/* Utility Spacing - Restored */
.mt-10 { margin-top: 10px; }
.mb-15 { margin-bottom: 15px; }

/* Header Elements - Adjusted Alignment */
/* Removing override for app-title as it is redefined above */

.header-btn {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    width: 34px; height: 34px; /* Reduced to avoid covering info */
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; 
    line-height: 1;
    cursor: pointer;
    z-index: 1001;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    padding: 0; /* reset padding */
}
.header-btn:active { background: rgba(255,255,255,0.2); }
.header-btn.left { left: 15px; } 
.header-btn.right { right: 15px; }

/* Scores (Refactored) */
.t1-color { color: #3498DB; text-shadow: 0 2px 4px rgba(0,0,0,0.3); } /* Brighter Blue */
.t2-color { color: #E91E63; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.h-pts { font-size: 16px; font-weight: 600; opacity: 1; margin-left: 4px; }
.h1-color { color: #85C1E9; } /* Lighter Blue for contrast */
.h2-color { color: #F48FB1; } /* Lighter Pink for contrast */
.main-score-val { color: #FFFFFF; font-size: 22px; font-weight: 800; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }

/* Modal Elements (Refactored) */
.close-btn-abs {
    position: absolute;
    top: 15px; right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}
.lang-btn {
    padding: 15px;
    font-size: 24px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

/* Declarations (Refactored) */
.decl-list-container {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 20px;
}
.decl-row {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-color);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.decl-label { font-weight: 700; font-size: 13px; color: var(--text-primary); }
.decl-actions { display: flex; gap: 8px; }
.add-decl-btn {
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.btn-blue { background: var(--accent-color); box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3); }
.btn-pink { background: #E91E63; box-shadow: 0 2px 5px rgba(233, 30, 99, 0.3); }

.active-decl-item {
    display: flex; justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 0;
    border-bottom: 1px dashed var(--border-color);
}
.remove-decl-btn {
    color: var(--danger-color);
    border: none; background: none;
    font-weight: bold; font-size: 18px;
    padding: 0 5px; line-height: 1;
}

.done-btn {
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    background: var(--success-color);
    color: white;
    border-radius: var(--radius);
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

/* Extra Actions Section */
.extra-actions {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Changed to 2x2 as requested */
    gap: 12px;
}
.action-icon-btn {
    padding: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-primary);
}
.btn-txt-xs { font-size: 13px; } /* Increased from 10px */

.btn-valat { background: #E8F5E9; color: #2E7D32; border-color: #C8E6C9; }
.btn-reset { background: #FFEBEE; color: #C62828; border-color: #FFCDD2; }
.text-blue { color: var(--accent-color); }

.decl-summary {
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 8px;
    height: 16px;
    font-weight: 500;
}

/* History List Items (Dynamic) */
.history-entry {
    background: var(--card-bg);
    padding: 16px;
    margin-bottom: 10px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}
.hist-idx { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.hist-score { font-weight: 800; font-size: 16px; }
.hist-actions { display: flex; gap: 8px; }
.icon-btn {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    font-size: 14px;
}
/* Rules Content Styling */
#rules-content {
    white-space: pre-wrap; /* Preserve newlines */
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    padding: 0 10px;
}
#rules-content strong, #rules-content b {
    font-weight: 900;
    color: var(--brand-color);
    display: block; /* Make titles block elements */
    margin-top: 15px;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 2px;
}

/* --- History Entries --- */


* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--light);
    margin: 0;
    padding: 100px 15px 120px;
    color: #333;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 85px;
    background: linear-gradient(135deg, #1e1e1e, #323232);
    color: white;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.team-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.team-score .team-name {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.6;
    margin-bottom: 2px;
    letter-spacing: 1px;
}

.team-score .score {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.team-score .current-hand {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.9;
}

.score-box.center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-box.center .label {
    font-size: 9px;
    opacity: 0.5;
    margin-bottom: 2px;
}

.score-box.center .value {
    font-size: 20px;
    color: var(--primary);
    font-weight: 800;
}



.section {
    margin-bottom: 12px;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

h3 {
    margin: 0 0 8px;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-selection {
    text-align: center;
    font-weight: bold;
    color: var(--primary);
    margin-top: 5px;
    height: 18px;
    font-size: 13px;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
    touch-action: manipulation;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.team-toggle button,
.declarer-toggle button,
.bidding-buttons button,
.high-bidding-buttons button {
    padding: 8px 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 700;
    font-size: 11px;
    color: #444;
}

.team-toggle button.active,
.declarer-toggle button.active,
.bidding-buttons button.active,
.high-bidding-buttons button.active,
.last-10-btn.active,
.valat-btn.active,
.decl-buttons button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.card-buttons button {
    height: 45px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 0 #ddd;
}

.decl-buttons button {
    height: 40px;
    font-size: 10px;
    padding: 2px;
}

.card-buttons button:active {
    transform: translateY(2px);
    box-shadow: none;
    background: #f0f0f0;
}

@keyframes shake {
    25% {
        transform: translateX(-5px);
        border-color: red;
    }

    50% {
        transform: translateX(5px);
        border-color: red;
    }

    75% {
        transform: translateX(-5px);
        border-color: red;
    }
}

.shake-error {
    animation: shake 0.3s;
    background: #ffebee !important;
}

.footer-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 900;
}

.finish-button,
.new-game-btn {
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.finish-button {
    background: var(--accent);
    color: white;
}

.new-game-btn {
    background: #ff5252;
    color: white;
}

.points-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.points-list p {
    margin: 0;
    background: #e0e0e0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    touch-action: manipulation;
    font-weight: bold;
    border: 1px solid #ccc;
    transition: transform 0.1s;
}

.points-list p:active {
    transform: scale(0.95);
    background: #FFCDD2;
}

.split-grid-container {
    display: flex;
    gap: 8px;
}

.split-column {
    flex: 1;
    background: #fafafa;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.split-column h4 {
    text-align: center;
    margin: 3px 0 5px;
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
}

.trump-buttons button {
    border-color: var(--primary);
    color: #1565C0;
    background: #E3F2FD;
}

button.disabled-look {
    opacity: 0.4;
    background: #eee !important;
    border-color: #ddd !important;
    color: #999 !important;
    pointer-events: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 80%;
    max-width: 400px;
}

.modal-content h2 {
    color: var(--accent);
    margin-bottom: 20px;
}

.ad-banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    width: 100%;
}

.ad-placeholder {
    width: 320px;
    height: 50px;
    background-color: #e0e0e0;
    border: 1px dashed #aaa;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.app-footer {
    background-color: #f5f5f7;
    padding: 30px 15px 80px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
    color: #666;
    font-size: 12px;
}

.app-footer .footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.app-footer p {
    margin: 5px 0;
}

.app-footer .seo-text {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
}

.app-footer .footer-links a {
    color: #2196F3;
    text-decoration: none;
    margin: 0 5px;
}


.app-footer .footer-links a:hover {
    text-decoration: underline;
}




.close-rules {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

#rules-content h3 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #333;
}

#rules-content ul {
    padding-left: 20px;
    margin: 5px 0;
}

#rules-content li {
    margin-bottom: 3px;
}

.trump-log-item {
    font-weight: bold;
    color: #1565C0;
    background: #E3F2FD;
}


.modal-top { align-items: flex-start; padding-top: 80px; }
.modal-scroll { width: 95%; max-height: 80vh; overflow-y: auto; }
.mw-600 { max-width: 600px; }
.mw-500 { max-width: 500px; }
.decl-list-wrap { margin-top: 15px; border-top: 1px solid var(--border-color); padding-top: 10px; }
.split-col-flex { flex-direction: column; gap: 10px; }
.h4-lbl { margin: 0 0 5px 0; }
.btn-grey { background: #607d8b; color: white; border: none; }

.edit-banner {
    background: #ff9800;
    color: #fff;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.shake-error {
  animation: shake 0.5s;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.point-log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.point-log-item:hover {
    background: #fff5f5;
    border-color: #ffcdd2;
}
.remove-icon {
    font-size: 14px;
    opacity: 0.7;
}
.point-log-item:hover .remove-icon {
    opacity: 1;
}
