* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('assets/bahigrisbanner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    perspective: 1000px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    pointer-events: none;
}


.black-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 1);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.black-overlay.active {
    opacity: 1;
}

.fishing-mode-active .container {
    filter: blur(0.5px);
    transition: filter 0.3s ease;
}

.fishing-mode-active .timer-section {
    transform: translateZ(20px) scale(1.05);
    box-shadow: 0 20px 50px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
}

.fishing-mode-active .digital-timer {
    animation: fishingGlow 2s ease-in-out infinite alternate;
}

@keyframes fishingGlow {
    from { 
        text-shadow: 2px 2px 4px rgba(0,0,0,0.1), 0 0 20px rgba(52, 152, 219, 0.3);
        color: #2c3e50;
    }
    to { 
        text-shadow: 2px 2px 4px rgba(0,0,0,0.1), 0 0 30px rgba(52, 152, 219, 0.6);
        color: #3498db;
    }
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transform: translateZ(20px);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateZ(20px) translateY(0px); }
    50% { transform: translateZ(20px) translateY(-10px); }
}

.instructions {
    font-size: 1.1rem;
    opacity: 0.9;
    transform: translateZ(10px);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    z-index: 2;
}

.center-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    z-index: 2;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-y: auto;
    max-height: 100vh;
    position: relative;
    z-index: 2;
}


.fisherman-profile,
.timer-section,
.custom-zones,
.results-section,
.stats-section,
.config-section,
.log-section,
.notes-section {
    transform: translateZ(0px);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.fisherman-profile:hover,
.timer-section:hover,
.custom-zones:hover,
.results-section:hover,
.stats-section:hover,
.config-section:hover,
.log-section:hover,
.notes-section:hover {
    transform: translateZ(10px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.fishing-mode-toggle {
    margin-bottom: 20px;
    text-align: center;
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
    transform: translateZ(5px);
}

.toggle-switch input {
    display: none;
}

.slider {
    position: relative;
    width: 60px;
    height: 30px;
    background: #ccc;
    border-radius: 30px;
    transition: 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    transform: translateZ(5px);
}

.slider:before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .slider {
    background: linear-gradient(45deg, #27ae60, #229954);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 10px rgba(39, 174, 96, 0.3);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(30px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.timer-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    transform: translateZ(10px);
}

.timer-display {
    margin-bottom: 25px;
    transform: translateZ(15px);
}


.clock-face {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.clock-circle {
    position: relative;
    width: 200px;
    height: 200px;
    border: 8px solid #3498db;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.2),
        inset 0 5px 15px rgba(0,0,0,0.1);
    transform: translateZ(10px);
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #3498db;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.seconds-hand {
    width: 2px;
    height: 80px;
    background: #e74c3c;
    transform: translate(-50%, -100%) rotate(0deg);
    transition: transform 0.1s linear;
}

.minutes-hand {
    width: 4px;
    height: 60px;
    background: #2c3e50;
    transform: translate(-50%, -100%) rotate(0deg);
    transition: transform 0.1s linear;
}

.clock-numbers {
    position: absolute;
    width: 100%;
    height: 100%;
}

.number {
    position: absolute;
    font-weight: bold;
    font-size: 1.2rem;
    color: #2c3e50;
    transform: translate(-50%, -50%);
}

.number-12 { top: 10px; left: 50%; }
.number-3 { top: 50%; right: 10px; transform: translate(0, -50%); }
.number-6 { bottom: 10px; left: 50%; transform: translate(-50%, 0); }
.number-9 { top: 50%; left: 10px; transform: translate(0, -50%); }

.digital-timer {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    transform: translateZ(20px);
    animation: timerGlow 2s ease-in-out infinite alternate;
}

@keyframes timerGlow {
    from { text-shadow: 2px 2px 4px rgba(0,0,0,0.1); }
    to { text-shadow: 2px 2px 4px rgba(0,0,0,0.1), 0 0 20px rgba(52, 152, 219, 0.3); }
}

.timer-status {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 500;
    transform: translateZ(10px);
}

.timer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    transform: translateZ(10px);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    transform: translateZ(5px);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateZ(2px);
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateZ(8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateZ(8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.4);
}

.btn-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover:not(:disabled) {
    transform: translateZ(8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, #27ae60, #229954);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-info {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-warning {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.custom-zones {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateZ(5px);
}

.custom-zones h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
    transform: translateZ(10px);
}

.zone-inputs {
    margin-bottom: 20px;
    transform: translateZ(5px);
}

.zone-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.zone-input {
    padding: 10px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
    transform: translateZ(2px);
}

.zone-input:focus {
    outline: none;
    border-color: #3498db;
    transform: translateZ(5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.zone-input::placeholder {
    color: #95a5a6;
}

.zone-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    transform: translateZ(5px);
}

.zone-btn {
    padding: 15px 20px;
    border: 2px solid #bdc3c7;
    border-radius: 10px;
    background: white;
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    transform: translateZ(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.zone-btn:hover {
    border-color: #3498db;
    transform: translateZ(8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.zone-btn.active {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border-color: #3498db;
    transform: translateZ(8px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.zone-btn .remove-zone {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transform: translateZ(10px);
}

.zone-btn:hover .remove-zone {
    display: flex;
}

.results-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateZ(5px);
}

.result-display {
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateZ(10px);
}

.result-message {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.capture-info {
    font-size: 1rem;
    color: #7f8c8d;
}

.stats-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateZ(5px);
}

.stats-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
    transform: translateZ(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    transform: translateZ(5px);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    transform: translateZ(5px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateZ(8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
}

.stat-label {
    font-weight: 600;
    color: #2c3e50;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
}

.config-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateZ(5px);
}

.config-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
    transform: translateZ(10px);
}

.config-controls {
    display: flex;
    justify-content: center;
    transform: translateZ(5px);
}


.cauries-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
  }
  
  .cauries-buttons .btn {
    flex: 1;
  }
  
  .cauries-input:focus {
    border-color: #f1c40f;
    box-shadow: 0 0 5px rgba(241, 196, 15, 0.5);
  }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
    transform: translateZ(20px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9) translateZ(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) translateZ(20px);
    }
}

.modal-header {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
}

.config-section-item {
    margin-bottom: 30px;
    transform: translateZ(5px);
}

.config-section-item:last-child {
    margin-bottom: 0;
}

.config-section-item h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.music-settings {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    transform: translateZ(5px);
}

.setting-input {
    padding: 12px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    transform: translateZ(2px);
}

.setting-input:focus {
    outline: none;
    border-color: #3498db;
    transform: translateZ(5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.music-info {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.music-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.music-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.music-value {
    font-weight: bold;
    color: #3498db;
    font-size: 1.1rem;
}

.dice-settings {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    transform: translateZ(5px);
}

.setting-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 15px;
}

.setting-toggle input {
    display: none;
}

.setting-slider {
    position: relative;
    width: 50px;
    height: 25px;
    background: #ccc;
    border-radius: 25px;
    transition: 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.setting-slider:before {
    content: '';
    position: absolute;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setting-toggle input:checked + .setting-slider {
    background: linear-gradient(45deg, #27ae60, #229954);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 10px rgba(39, 174, 96, 0.3);
}

.setting-toggle input:checked + .setting-slider:before {
    transform: translateX(25px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setting-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.setting-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.save-load-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.save-info, .profile-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
}

.info-value {
    font-weight: bold;
    color: #3498db;
    max-width: 200px;
    text-align: right;
    word-break: break-word;
}

.controls-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.control-item:last-child {
    border-bottom: none;
}

.control-key {
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}

.control-desc {
    color: #2c3e50;
    font-weight: 500;
}

.log-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    height: calc(100vh - 50px);
    display: flex;
    flex-direction: column;
    transform: translateZ(5px);
}

.log-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
    transform: translateZ(10px);
}

.log-container {
    flex: 1;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    transform: translateZ(5px);
}

.log-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.log-entries {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.log-entry {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    transform: translateZ(2px);
}

.log-entry:hover {
    background-color: #f8f9fa;
    transform: translateZ(5px);
}

.log-entry.success {
    border-left: 4px solid #27ae60;
    background-color: #f8fff9;
}

.log-entry.failure {
    border-left: 4px solid #e74c3c;
    background-color: #fff8f8;
}

.log-entry.premature {
    border-left: 4px solid #f39c12;
    background-color: #fffbf0;
}

.log-timestamp, .log-result, .log-zone, .log-details {
    font-size: 0.9rem;
    word-break: break-word;
}

.log-result.success {
    color: #27ae60;
    font-weight: 600;
}

.log-result.failure {
    color: #e74c3c;
    font-weight: 600;
}

.log-result.premature {
    color: #f39c12;
    font-weight: 600;
}

.log-pagination {
    background: #f8f9fa;
    border-top: 2px solid #e0e0e0;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    transform: translateZ(5px);
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #2c3e50;
}

.pagination-text {
    color: #7f8c8d;
}

.pagination-current {
    font-weight: bold;
    color: #3498db;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 20px;
    text-align: center;
}

.pagination-total {
    font-weight: bold;
    color: #2c3e50;
}

.pagination-controls {
    display: flex;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: 100px;
}

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

@media (max-width: 1400px) {
    .main-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .right-column {
        grid-column: 1 / -1;
        height: auto;
        position: static;
    }
}

@media (max-width: 1000px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .center-column, .right-column {
        height: auto;
        position: static;
    }
    
    .log-section {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .floating-config-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-music-player {
        bottom: 20px;
        right: 80px;
        width: 240px;
        padding: 12px;
    }

    .config-icon {
        font-size: 20px;
    }

    .music-icon {
        font-size: 16px;
    }

    .music-title {
        font-size: 12px;
    }

    .music-control-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .clock-circle {
        width: 200px;
        height: 200px;
    }
    
    .seconds-hand {
        height: 60px;
    }
    
    .minutes-hand {
        height: 45px;
    }
    
    .digital-timer {
        font-size: 2rem;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .zone-input-group {
        flex-direction: column;
    }
    
    .zone-input {
        width: 100%;
    }
    
    .zone-buttons {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .save-load-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .log-header, .log-entry {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .log-header {
        display: none;
    }
    
    .log-entry {
        padding: 10px;
    }
    
    .log-timestamp::before {
        content: "Tiempo: ";
        font-weight: 600;
    }
    
    .log-result::before {
        content: "Resultado: ";
        font-weight: 600;
    }
    
    .log-zone::before {
        content: "Zona: ";
        font-weight: 600;
    }
    
    .log-details::before {
        content: "Detalles: ";
        font-weight: 600;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .info-item, .control-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .music-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .toggle-switch {
        flex-direction: column;
        gap: 10px;
    }

    .config-nav {
        flex-direction: column;
        gap: 8px;
    }

    .config-nav-btn {
        min-width: auto;
        font-size: 0.8rem;
        padding: 10px 12px;
    }

    .about-content {
        max-height: 50vh;
    }

    .about-section {
        padding: 12px;
        margin-bottom: 20px;
    }

    .about-section h4 {
        font-size: 1rem;
    }

    .system-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .feature-list li {
        padding: 6px 0;
        font-size: 0.9rem;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.digital-timer.running {
    animation: pulse 1s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.log-entry {
    animation: fadeIn 0.3s ease-in-out;
} 

.custom-zones,
.stats-section,
.log-section {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.custom-zones *,
.stats-section *,
.log-section * {
    pointer-events: auto;
}

.btn,
.zone-btn,
input,
button {
    pointer-events: auto;
    cursor: pointer;
}

input[type="text"],
input[type="number"] {
    pointer-events: auto;
    cursor: text;
} 



.fisherman-profile:hover {
    transform: translateZ(10px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.fisherman-profile h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.profile-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.profile-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    transform: translateZ(5px);
}

.profile-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.profile-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    transform: translateZ(5px);
}


.journal-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.journal-textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.journal-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    transform: translateZ(5px);
}

.journal-controls {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.journal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
}

.journal-label {
    font-weight: 600;
    color: #2c3e50;
}

.journal-value {
    color: #3498db;
    font-weight: 600;
} 

.file-input-container {
    margin-top: 15px;
    padding: 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    border: 2px dashed #3498db;
}

.file-input-container input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #3498db;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.file-input-container input[type="file"]:hover {
    background: #f8f9fa;
    transform: translateZ(2px);
} 

.floating-config-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    transform: translateZ(20px);
}

.floating-config-btn:hover {
    transform: translateZ(30px) scale(1.1);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.6);
    background: linear-gradient(45deg, #2980b9, #1f5f8b);
}

.floating-config-btn:active {
    transform: translateZ(15px) scale(0.95);
}

.config-icon {
    font-size: 24px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.floating-music-player {
    position: fixed;
    bottom: 30px;
    right: 110px;
    width: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 9998;
    transform: translateZ(15px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-music-player:hover {
    transform: translateZ(25px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.music-player-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.music-icon {
    font-size: 18px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.music-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.music-player-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.music-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: white;
    backdrop-filter: blur(5px);
}

.music-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.music-control-btn:active {
    transform: scale(0.95);
}

.music-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.music-player-progress {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.config-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    background: rgba(52, 152, 219, 0.1);
    padding: 10px;
    border-radius: 15px;
    flex-wrap: wrap;
}

.config-nav-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    transform: translateZ(0px);
}

.config-nav-btn:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateZ(5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.config-nav-btn.active {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    transform: translateZ(10px);
}

.config-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.config-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
} 

.about-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.about-section {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.about-section p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #555;
    line-height: 1.5;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li strong {
    color: #2c3e50;
}

.system-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.system-stats .stat-item {
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.system-stats .stat-label {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.system-stats .stat-value {
    color: #555;
    font-size: 0.9rem;
}

.about-content::-webkit-scrollbar {
    width: 6px;
}

.about-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.about-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.about-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 

.profile-journal-tabs {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateZ(5px);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.profile-journal-tabs:hover {
    transform: translateZ(10px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateZ(5px);
}

.tab-btn:hover {
    color: #3498db;
    transform: translateZ(8px);
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    transform: translateZ(10px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

@media (max-width: 768px) {
    .timer-section {
        -webkit-tap-highlight-color: transparent;
    }
    
    .clock-circle {
        cursor: pointer;
    }
    
    .digital-timer {
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
    }
    
    .timer-controls .btn {
        padding: 15px 25px;
        min-width: 140px;
    }

    .clock-circle:active {
        transform: translateZ(10px) scale(0.98);
    }
    
    .digital-timer:active {
        transform: translateZ(20px) scale(0.98);
    }
}


.zone-btn {
    position: relative;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zone-btn.active {
    background-color: #3498db;
    color: white;
}

.remove-zone {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

.remove-zone:hover {
    background: #c0392b;
}


.stats-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateZ(5px);
    transition: all 0.3s ease;
  }
  
  .stats-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
    transform: translateZ(10px);
  }
  
  .stats-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .stat-row {
    display: flex;
    gap: 15px;
  }
  
  .stat-item {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    transform: translateZ(5px);
    transition: all 0.3s ease;
  }
  
  .stat-item:hover {
    transform: translateZ(8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
  }
  
  .stat-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
  }
  
  .stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
    min-width: 30px;
    text-align: right;
  }
  
    #successfulCatches {
    color: #27ae60;
  }
  
  #failedCatches {
    color: #e74c3c;
  }
  
  #prematureCatches {
    color: #f39c12;
  }
  
  #lostBaits {
    color: #9b59b6;
  }
  @media (max-width: 768px) {
    .stat-row {
      flex-direction: column;
    }
    
    .stat-item {
      width: 100%;
    }
  }

  .cauries-section .tab-buttons {
    display: flex;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 15px;
  }
  
  .cauries-section .tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #7f8c8d;
  }
  
  .cauries-section .tab-btn.active {
    color: #f1c40f;
    border-bottom-color: #f1c40f;
  }
  
    .history-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .history-table th, .history-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
  }
  
  .history-table thead {
    background-color: #f8f9fa;
  }
  
  .history-table tr.deposit td {
    background-color: rgba(46, 204, 113, 0.1);
  }
  
  .history-table tr.withdraw td {
    background-color: rgba(231, 76, 60, 0.1);
  }
  
  .positive {
    color: #2ecc71;
  }
  
  .negative {
    color: #e74c3c;
  }
  
  .zero {
    color: #7f8c8d;
  }
  
  .btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
  }
  
  .undo-btn:hover {
    color: #3498db;
  }
  
  .history-container {
    max-height: 300px;
    overflow-y: auto;
  }

  .cauries-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  
  .cauries-section h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
  }
  
  .cauries-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .cauries-input {
    padding: 12px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .cauries-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #f1c40f;
  }
  
  .cauries-label {
    font-weight: 600;
    color: #2c3e50;
  }
  
  .cauries-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #f1c40f;
  }


  .achievements-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  
  .circular-progress {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
  }
 
  
  .progress-check {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
  }
  
  .fish-type {
    text-align: center;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
  }
  
  .fish-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
  }
  
  .fish-category {
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
  }
  
  .fish-category h4 {
    margin-bottom: 10px;
    color: #3498db;
  }
  
  .fish-category .status {
    font-style: italic;
    color: #7f8c8d;
  }
  
  .fish-category.completed .status {
    color: #27ae60;
    font-weight: bold;
  }
  
  .specters-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .specter-item {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .fish-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 100;
    pointer-events: none;
  }
  
  .circle-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
    border: 3px solid #3498db;
    border-radius: 50%;
}

.number-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #2c3e50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.number-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    background: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.6);
}

.number-marker.completed {
    background: #27ae60;
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.6);
}

.fish-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 20;
}

.number-marker:hover .fish-tooltip {
    visibility: visible;
    opacity: 1;
}


.specters-list {
    display: flex;
    gap: 15px;
    padding: 15px;
}

.specter-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.specter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.specter-number {
    font-weight: bold;
    color: #3498db;
    min-width: 20px;
}

.specter-name-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    background: rgba(255,255,255,0.9);
}

.specters-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid #ecf0f1;
}

.specters-controls .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
}


.market-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateZ(5px);
}

.market-tabs {
    display: flex;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 15px;
}

.market-tab-btn {
    padding: 10px 15px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.market-tab-btn:hover {
    color: #3498db;
}

.market-tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.market-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.market-content.active {
    display: block;
}

.market-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.market-header, .market-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    align-items: center;
}

.market-header {
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.market-row {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.market-row:last-child {
    border-bottom: none;
}

.market-row button {
    padding: 8px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}


.market-category {
    grid-column: 1 / -1;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ecf0f1;
}


.btn-info {
    background: linear-gradient(45deg, #3498db, #2980b9);
}
.btn-warning {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}
.btn-primary {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}
.btn-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.inventory-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.inventory-table-container {
    overflow-x: auto;
    margin-top: 15px;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
}

.inventory-table th, .inventory-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.inventory-table th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

.inventory-table tr:hover {
    background-color: #f8f9fa;
}

.inventory-item-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inventory-item-icon {
    font-size: 1.5rem;
}

.inventory-item-name {
    font-weight: 500;
}

.inventory-item-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    background-color: #ecf0f1;
}

.inventory-actions {
    display: flex;
    gap: 8px;
}

.inventory-search {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
}


.type-bait { background-color: #f1c40f; color: #2c3e50; }
.type-rod { background-color: #e67e22; color: white; }
.type-hook { background-color: #9b59b6; color: white; }
.type-equipment { background-color: #3498db; color: white; }
.type-upgrade { background-color: #e74c3c; color: white; }


.market-subtabs {
    display: flex;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 15px;
    overflow-x: auto;
}

.market-subtab-btn {
    padding: 10px 15px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.market-subtab-btn:hover {
    color: #3498db;
}

.market-subtab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.market-subcontent {
    display: none;
    animation: fadeIn 0.3s ease;
}

.market-subcontent.active {
    display: block;
}


.fishing-techniques {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateZ(5px);
}

.technique-section {
    padding: 15px;
}

.technique-description {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.dice-results {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.dice-roll {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.dice-roll.total {
    background: #3498db;
    color: white;
}

.dice-label {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.dice-value {
    font-weight: bold;
    font-size: 1.2rem;
}

.attempts-counter {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.technique-result {
    min-height: 50px;
    padding: 10px;
    margin-top: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    text-align: center;
}

.currents-game-area {
    margin-top: 20px;
}

.currents-table {
    position: relative;
    height: 300px;
    background: #ecf0f1;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.currents-capture {
    position: absolute;
    padding: 10px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
}

.currents-capture[data-type="common"] {
    background: #f1c40f;
    color: #2c3e50;
}

.currents-capture[data-type="superior"] {
    background: #3498db;
    color: white;
}

.currents-capture[data-type="abyssal"] {
    background: #9b59b6;
    color: white;
}

.currents-capture[data-type="eldric"] {
    background: #e74c3c;
    color: white;
}


.currents-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.currents-row {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.currents-cell {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.currents-cell.fish-type-common {
    background-color: #f1c40f;
    color: #2c3e50;
}

.currents-cell.fish-type-superior {
    background-color: #3498db;
    color: white;
}

.currents-cell.fish-type-abyssal {
    background-color: #9b59b6;
    color: white;
}

.currents-cell.fish-type-eldric {
    background-color: #e74c3c;
    color: white;
}

.hook-landed {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.6);
}

.hook-icon {
    font-size: 1.5rem;
    animation: hookDrop 0.5s ease;
}

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


.currents-success {
    padding: 10px;
    background-color: rgba(46, 204, 113, 0.2);
    border-left: 4px solid #2ecc71;
    color: #27ae60;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
}


.fish-row {
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    background: white;
    transition: all 0.3s ease;
}

.eldric-fish {
    border-left: 4px solid #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.abyssal-fish {
    border-left: 4px solid #9b59b6;
    background-color: rgba(155, 89, 182, 0.1);
}

.superior-fish {
    border-left: 4px solid #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.common-fish {
    border-left: 4px solid #f1c40f;
    background-color: rgba(241, 196, 15, 0.1);
}

.fish-number {
    display: inline-block;
    width: 25px;
    height: 25px;
    background: #2c3e50;
    color: white;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

.fish-name {
    font-weight: 500;
}

.currents-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin: 20px auto;
}

.currents-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.currents-cell:hover {
    transform: scale(1.05);
}

.fish-type-common {
    background-color: #f1c40f;
    color: #2c3e50;
}

.fish-type-superior {
    background-color: #3498db;
    color: white;
}

.fish-type-abyssal {
    background-color: #9b59b6;
    color: white;
}

.fish-type-eldric {
    background-color: #e74c3c;
    color: white;
}

.fish-captured {
    animation: fishCapture 0.5s ease-in-out;
    transform: scale(1.1);
}

@keyframes fishCapture {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

.hook-sprite {
    position: absolute;
    font-size: 30px;
    z-index: 10;
    animation: hookThrow 0.7s ease-out forwards;
}

@keyframes hookThrow {
    from {
        transform: translateY(0) rotate(0deg);
    }
    to {
        transform: translateY(var(--final-y)) translateX(var(--final-x)) rotate(var(--final-rotate));
    }
}


.currents-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 50px);
    gap: 10px;
    margin: 0 auto;
    justify-content: center;
}

.currents-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-cell {
    background-color: #ecf0f1;
    color: #95a5a6;
}

.common-cell {
    background-color: #f1c40f;
    color: #2c3e50;
}

.superior-cell {
    background-color: #3498db;
    color: white;
}

.abyssal-cell {
    background-color: #9b59b6;
    color: white;
}

.eldric-cell {
    background-color: #e74c3c;
    color: white;
}

.hook-landed {
    position: relative;
    animation: hookDrop 0.5s ease-out;
}

@keyframes hookDrop {
    0% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.hook-icon {
    font-size: 24px;
    animation: hookFloat 1s infinite alternate;
}

@keyframes hookFloat {
    from { transform: translateY(-3px); }
    to { transform: translateY(3px); }
}

.active-bait-display {
    background-color: #2c3e50;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    border-left: 4px solid #f39c12;
}

.active-bait-display .bait-icon {
    font-size: 18px;
}

.active-bait-display .bait-text {
    flex-grow: 1;
}

.active-bait-display .bait-time {
    font-size: 12px;
    opacity: 0.8;
}


.floating-config-btn {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 62, 80, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-config-btn:hover {
    background: rgba(52, 152, 219, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.config-icon {
    font-size: 24px;
    color: #ecf0f1;
}

@media (max-width: 768px) {
    .floating-config-btn {
        left: 10px;
        width: 40px;
        height: 40px;
    }
    
    .config-icon {
        font-size: 20px;
    }
}

.stats-section {
    margin-bottom: 20px;
}

.stats-section h3 {
    margin: 0 0 10px 0;
    color: #333;
    text-align: center;
    font-size: 18px;
}

.simple-stats {
    font-size: 15px;
}

.stat-line {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.stat-icon {
    margin-right: 5px;
}

.stat-label {
    margin-right: 5px;
    color: #bdc3c7;
}

.stat-value {
    font-weight: bold;
    color: #ecf0f1;
    margin-right: 20px;
}

.stat-spacer {
    width: 20px;
    display: inline-block;
}

@media (max-width: 600px) {
    .stat-line {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 12px;
    }
    
    .stat-spacer {
        display: none;
    }
    
    .stat-group {
        margin-bottom: 5px;
    }
}