/**
 * Toad Patrol Frontend Styles
 */

/* CSS Variables */
:root {
    --toad-primary: #2e7d32;
    --toad-primary-dark: #1b5e20;
    --toad-primary-light: #4caf50;
    --toad-secondary: #ff9800;
    --toad-secondary-dark: #f57c00;
    --toad-found: #ff6b6b;
    --toad-rewilded: #51cf66;
    --toad-alive: #51cf66;
    --toad-dead: #868e96;
    --toad-injured: #fcc419;
    --toad-text: #333;
    --toad-text-light: #666;
    --toad-border: #ddd;
    --toad-bg: #f8f9fa;
    --toad-white: #fff;
    --toad-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --toad-radius: 8px;
}

/* Form Container */
.toad-patrol-form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 0 20px;
}

.toad-patrol-form-box {
    background: var(--toad-white);
    border-radius: var(--toad-radius);
    box-shadow: var(--toad-shadow);
    padding: 40px;
}

.toad-patrol-form-box.toad-form-wide {
    max-width: 700px;
}

/* Mobile Form Centering */
@media (max-width: 768px) {
    .toad-patrol-form-container {
        margin: 20px auto;
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .toad-patrol-form-box {
        width: 100%;
        max-width: 100%;
        padding: 25px 20px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .toad-patrol-form-box.toad-form-wide {
        max-width: 100%;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .toad-patrol-form-container {
        margin: 30px auto;
        padding: 0 20px;
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .toad-patrol-form-box {
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .toad-patrol-form-box.toad-form-wide {
        max-width: 700px;
    }
}

/* Landscape Mobile/Tablet */
@media (max-width: 1024px) and (orientation: landscape) {
    .toad-patrol-form-container {
        margin: 15px auto;
        padding: 0 20px;
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .toad-patrol-form-box {
        max-width: 600px;
        margin: 0 auto;
        box-sizing: border-box;
    }
}

.toad-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.toad-form-header h2 {
    color: var(--toad-primary);
    margin-bottom: 10px;
}

.toad-form-header p {
    color: var(--toad-text-light);
}

/* Mobile Form Header Styling */
@media (max-width: 768px) {
    .toad-form-header {
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .toad-form-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .toad-form-header p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .toad-info-box {
        margin: 15px 0 !important;
        padding: 12px !important;
        font-size: 0.9rem !important;
    }

    .toad-form-section h3 {
        font-size: 1.2rem;
        text-align: center;
    }
}

/* Security Badges */
.toad-security-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #c8e6c9;
}

.security-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Form Elements */
.toad-patrol-form {
    width: 100%;
}

.toad-form-group {
    margin-bottom: 20px;
}

.toad-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--toad-text);
}

.toad-form-group label .required {
    color: var(--toad-found);
}

.toad-form-group input[type="text"],
.toad-form-group input[type="email"],
.toad-form-group input[type="password"],
.toad-form-group input[type="tel"],
.toad-form-group input[type="number"],
.toad-form-group input[type="date"],
.toad-form-group input[type="datetime-local"],
.toad-form-group select,
.toad-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--toad-border);
    border-radius: var(--toad-radius);
    font-size: 16px;
    transition:
        border-color 0.3s,
        box-shadow 0.3s;
}

.toad-form-group input:focus,
.toad-form-group select:focus,
.toad-form-group textarea:focus {
    outline: none;
    border-color: var(--toad-primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.toad-form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.toad-form-half {
    flex: 1;
    min-width: 200px;
}

.toad-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--toad-border);
}

.toad-form-section h3 {
    color: var(--toad-primary);
    margin-bottom: 20px;
    font-size: 18px;
}

/* Checkbox & Radio */
.toad-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.toad-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--toad-primary);
}

.toad-checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
    cursor: pointer;
}

.toad-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.toad-radio-card {
    flex: 1;
    min-width: 150px;
    cursor: pointer;
}

.toad-radio-card input[type="radio"] {
    display: none;
}

.toad-radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid var(--toad-border);
    border-radius: var(--toad-radius);
    text-align: center;
    transition: all 0.3s;
}

.toad-radio-card input[type="radio"]:checked+.toad-radio-content {
    border-color: var(--toad-primary);
    background: rgba(46, 125, 50, 0.05);
}

.toad-radio-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--toad-bg);
    border-radius: 50%;
    margin-bottom: 10px;
}

.toad-radio-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.toad-radio-label {
    font-weight: 600;
    color: var(--toad-text);
}

.toad-radio-desc {
    font-size: 12px;
    color: var(--toad-text-light);
    margin-top: 5px;
}

/* Buttons */
.toad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--toad-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.toad-btn-primary {
    background: var(--toad-primary);
    color: var(--toad-white);
}

.toad-btn-primary:hover {
    background: var(--toad-primary-dark);
    color: var(--toad-white);
}

.toad-btn-secondary {
    background: var(--toad-bg);
    color: var(--toad-text);
    border: 2px solid var(--toad-border);
}

.toad-btn-secondary:hover {
    background: var(--toad-border);
    color: var(--toad-text);
}

.toad-btn-chat {
    background: linear-gradient(135deg, #0084ff 0%, #0066cc 100%);
    color: white;
    border: none;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 132, 255, 0.3);
}

.toad-btn-chat:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.4);
}

.toad-unread-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff3b30;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.toad-chat-link {
    position: relative;
}

.toad-chat-link .toad-unread-badge {
    position: relative;
    top: auto;
    right: auto;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

.toad-btn-success {
    background: #28a745;
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.toad-btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.toad-btn-full {
    width: 100%;
}

.toad-btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.toad-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.toad-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.toad-btn-icon:hover {
    background: var(--toad-bg);
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Messages */
.toad-form-messages {
    margin-bottom: 20px;
}

.toad-notice {
    padding: 15px 20px;
    border-radius: var(--toad-radius);
    margin-bottom: 20px;
}

.toad-notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.toad-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.toad-notice-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.toad-notice-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.toad-notice a {
    color: inherit;
    font-weight: 600;
}

/* Form Footer */
.toad-form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--toad-border);
}

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

/* Social Login Styling */
.toad-social-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0 20px;
}

.toad-social-login-divider::before,
.toad-social-login-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--toad-border);
}

.toad-social-login-divider span {
    padding: 0 15px;
    color: var(--toad-text-light);
    font-size: 14px;
    font-weight: 500;
}

.toad-social-login-buttons {
    margin-bottom: 20px;
}

.toad-social-login-buttons #lz-social-login-btns {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
}

.toad-social-login-buttons .loginizer-social-divider {
    display: none !important;
}

.toad-social-login-buttons .loginizer-social-button {
    cursor: pointer !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.toad-social-login-buttons .loginizer-social-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.toad-forgot-password {
    color: var(--toad-text-light);
    font-size: 14px;
}

.toad-form-hint {
    font-size: 13px;
    color: var(--toad-text-light);
    margin-top: 5px;
}

/* Loginizer Pro reCAPTCHA Integration */
.toad-captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid var(--toad-border);
    border-bottom: 1px solid var(--toad-border);
    background: #fafafa;
    border-radius: var(--toad-radius);
}

.toad-captcha-container>div {
    display: flex;
    justify-content: center;
}

/* reCAPTCHA responsive adjustments */
@media (max-width: 480px) {
    .toad-captcha-container {
        padding: 15px 0;
    }

    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center center;
    }
}

/* 2FA Notice Styling */
.toad-2fa-notice {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: var(--toad-radius);
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.toad-2fa-notice h3 {
    color: #1976d2;
    margin-bottom: 10px;
}

.toad-2fa-notice p {
    color: #424242;
    margin: 0;
}

/* Dashboard */
.toad-patrol-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.toad-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.toad-user-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
}

.toad-user-avatar img {
    border-radius: 50%;
    border: 3px solid var(--toad-primary);
}

.toad-user-info h1 {
    margin: 0 0 5px;
    font-size: 24px;
}

.toad-user-role {
    display: inline-block;
    background: var(--toad-primary);
    color: var(--toad-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 10px;
}

.toad-user-since {
    color: var(--toad-text-light);
    font-size: 14px;
}

.toad-dashboard-actions {
    display: flex;
    gap: 10px;
}

/* Stats Cards */
.toad-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.toad-stat-card {
    background: var(--toad-white);
    border-radius: var(--toad-radius);
    box-shadow: var(--toad-shadow);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.toad-stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--toad-bg);
    border-radius: var(--toad-radius);
    color: var(--toad-primary);
}

.toad-stat-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.toad-stat-icon.toad-stat-found {
    color: var(--toad-found);
}

.toad-stat-icon.toad-stat-rewilded {
    color: var(--toad-rewilded);
}

.toad-stat-icon.toad-stat-alive {
    color: var(--toad-alive);
}

.toad-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--toad-text);
}

.toad-stat-label {
    display: block;
    font-size: 14px;
    color: var(--toad-text-light);
}

/* Dashboard Grid */
.toad-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

@media (max-width: 900px) {
    .toad-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

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

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

.toad-section-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--toad-text);
}

.toad-link {
    color: var(--toad-primary);
    font-weight: 600;
    text-decoration: none;
}

.toad-link:hover {
    text-decoration: underline;
}

/* Sightings List */
.toad-sightings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toad-sighting-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--toad-bg);
    border-radius: var(--toad-radius);
    transition: background 0.3s;
}

.toad-sighting-item:hover {
    background: #e9ecef;
}

.toad-sighting-date {
    text-align: center;
    min-width: 50px;
}

.toad-sighting-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--toad-primary);
}

.toad-sighting-date .month {
    display: block;
    font-size: 12px;
    color: var(--toad-text-light);
    text-transform: uppercase;
}

.toad-sighting-details {
    flex: 1;
}

.toad-sighting-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.toad-count {
    font-weight: 600;
}

.toad-sighting-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--toad-text-light);
}

.toad-sighting-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.toad-verified {
    color: var(--toad-primary);
}

.toad-sighting-actions {
    display: flex;
    gap: 5px;
}

/* Badges */
.toad-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.toad-type-found {
    background: rgba(255, 107, 107, 0.15);
    color: var(--toad-found);
}

.toad-type-rewilded {
    background: rgba(81, 207, 102, 0.15);
    color: #2f9e44;
}

.toad-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.toad-status-alive {
    background: rgba(81, 207, 102, 0.15);
    color: #2f9e44;
}

.toad-status-dead {
    background: rgba(134, 142, 150, 0.15);
    color: var(--toad-dead);
}

.toad-status-injured {
    background: rgba(252, 196, 25, 0.15);
    color: #e67700;
}

/* Quick Links */
.toad-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toad-quick-links li {
    margin-bottom: 5px;
}

.toad-quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: var(--toad-text);
    text-decoration: none;
    border-radius: var(--toad-radius);
    transition: background 0.3s;
}

.toad-quick-links a:hover {
    background: var(--toad-bg);
}

.toad-quick-links .dashicons {
    color: var(--toad-primary);
}

.toad-admin-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    border: 2px solid #2271b1;
}

.toad-admin-section h3 {
    color: #2271b1;
    font-weight: 700;
}

.toad-admin-highlight {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

.toad-admin-highlight:hover {
    background: linear-gradient(135deg, #135e96 0%, #0a3f6b 100%) !important;
    transform: translateX(3px);
}

.toad-admin-highlight .dashicons {
    color: white !important;
}

.toad-btn-success .dashicons-whatsapp {
    filter: brightness(0) invert(1);
}

/* Activity List */
.toad-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toad-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--toad-border);
}

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

.toad-activity-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    padding: 8px;
    background: var(--toad-primary);
    color: white;
    border-radius: 8px;
    text-align: center;
}

.toad-activity-date .day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.toad-activity-date .month {
    font-size: 11px;
    text-transform: uppercase;
    margin-top: 2px;
}

.toad-activity-details {
    flex: 1;
}

.toad-activity-type {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.toad-activity-user {
    font-size: 12px;
    color: var(--toad-text-light);
    font-weight: normal;
}

.toad-activity-actions {
    display: flex;
    align-items: center;
}

.delete-wildlife-entry:hover {
    background: #d32f2f !important;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.toad-activity-description {
    font-size: 14px;
    color: var(--toad-text);
    margin-bottom: 3px;
}

.toad-activity-time {
    display: block;
    font-size: 11px;
    color: var(--toad-text-light);
}

/* Empty State */
.toad-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--toad-text-light);
}

.toad-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Mini Map */
.toad-mini-map {
    height: 300px;
    border-radius: var(--toad-radius);
    overflow: hidden;
}

/* Profile Page */
.toad-patrol-profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.toad-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.toad-profile-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

@media (max-width: 800px) {
    .toad-profile-grid {
        grid-template-columns: 1fr;
    }
}

.toad-profile-card {
    background: var(--toad-white);
    border-radius: var(--toad-radius);
    box-shadow: var(--toad-shadow);
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.toad-profile-avatar img {
    border-radius: 50%;
    border: 3px solid var(--toad-primary);
}

.toad-profile-card h3 {
    margin: 15px 0 5px;
}

.toad-profile-role {
    color: var(--toad-text-light);
}

.toad-profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--toad-border);
}

.toad-profile-stat .stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--toad-primary);
}

.toad-profile-stat .stat-label {
    font-size: 12px;
    color: var(--toad-text-light);
}

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

.toad-profile-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Map Page */
.toad-patrol-map-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.toad-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.toad-map-header h2 {
    margin: 0;
}

.toad-map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
    background: var(--toad-white);
    border-radius: var(--toad-radius);
    box-shadow: var(--toad-shadow);
    margin-bottom: 20px;
}

.toad-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toad-filter-group>label:first-child {
    font-weight: 600;
    color: var(--toad-text);
}

.toad-map {
    border-radius: var(--toad-radius);
    box-shadow: var(--toad-shadow);
    overflow: hidden;
}

.toad-input-sm {
    padding: 6px 10px;
    border: 1px solid var(--toad-border);
    border-radius: 4px;
}

/* Map Legend */
.toad-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
    background: var(--toad-white);
    border-radius: var(--toad-radius);
    box-shadow: var(--toad-shadow);
    margin-top: 20px;
}

.toad-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toad-legend-color {
    width: 80px;
    height: 12px;
    border-radius: 6px;
}

.toad-legend-label {
    font-size: 13px;
    color: var(--toad-text-light);
}

.toad-legend-divider {
    width: 1px;
    background: var(--toad-border);
    margin: 0 10px;
}

.toad-marker-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.toad-marker-found {
    background: var(--toad-found);
}

.toad-marker-rewilded {
    background: var(--toad-rewilded);
}

/* Map Stats */
.toad-map-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: var(--toad-white);
    border-radius: var(--toad-radius);
    box-shadow: var(--toad-shadow);
    margin-top: 20px;
}

.toad-map-stat {
    text-align: center;
}

.toad-map-stat span {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--toad-primary);
}

.toad-map-stat label {
    font-size: 14px;
    color: var(--toad-text-light);
}

/* Report Form */
.toad-patrol-report-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.toad-report-header {
    text-align: center;
    margin-bottom: 30px;
}

.toad-report-header h1 {
    color: var(--toad-primary);
    margin-bottom: 10px;
}

.toad-report-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

@media (max-width: 800px) {
    .toad-report-grid {
        grid-template-columns: 1fr;
    }
}

.toad-report-form-container {
    background: var(--toad-white);
    border-radius: var(--toad-radius);
    box-shadow: var(--toad-shadow);
    padding: 30px;
}

.toad-form-map {
    height: 300px;
    border-radius: var(--toad-radius);
    border: 2px solid var(--toad-border);
    margin-bottom: 15px;
}

.toad-form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Help Boxes */
.toad-help-box {
    background: var(--toad-white);
    border-radius: var(--toad-radius);
    box-shadow: var(--toad-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.toad-help-box h3 {
    margin-top: 0;
    color: var(--toad-primary);
    font-size: 16px;
}

.toad-help-box ul {
    margin: 0;
    padding-left: 20px;
}

.toad-help-box li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--toad-text-light);
}

.toad-emergency-box {
    background: #fff8e1;
    border: 1px solid #ffcc80;
}

.toad-emergency-box h3 {
    color: #e65100;
}

/* Photo Upload */
.toad-photo-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.toad-photo-preview {
    width: 100%;
    max-width: 300px;
}

.toad-photo-preview img {
    max-width: 100%;
    border-radius: var(--toad-radius);
}

/* Statistics */
.toad-patrol-statistics {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.toad-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.toad-stat-box.toad-stat-large {
    background: var(--toad-white);
    border-radius: var(--toad-radius);
    box-shadow: var(--toad-shadow);
    padding: 30px;
    text-align: center;
}

.toad-stat-box.toad-stat-large .toad-stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: var(--toad-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toad-stat-box.toad-stat-large .toad-stat-icon .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: var(--toad-primary);
}

.toad-stat-box.toad-stat-large .toad-stat-number {
    font-size: 36px;
}

.toad-stats-season {
    margin-top: 30px;
    padding: 30px;
    background: var(--toad-primary);
    border-radius: var(--toad-radius);
    color: var(--toad-white);
}

.toad-stats-season h3 {
    margin-top: 0;
    text-align: center;
}

.toad-stats-small .toad-stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--toad-radius);
    text-align: center;
}

.toad-stats-small .toad-stat-number {
    color: var(--toad-white);
}

.toad-stats-small .toad-stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Leaderboard */
.toad-patrol-leaderboard {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.toad-patrol-leaderboard h2 {
    text-align: center;
    margin-bottom: 30px;
}

.toad-leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toad-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--toad-white);
    border-radius: var(--toad-radius);
    box-shadow: var(--toad-shadow);
}

.toad-leaderboard-item.toad-top-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.toad-leaderboard-item.toad-top-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
}

.toad-leaderboard-item.toad-top-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a85c 100%);
}

.toad-rank {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--toad-primary);
    color: var(--toad-white);
    border-radius: 50%;
    font-weight: 700;
}

.toad-leader-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toad-leader-info img {
    border-radius: 50%;
}

.toad-leader-name {
    display: block;
    font-weight: 600;
}

.toad-leader-area {
    display: block;
    font-size: 12px;
    color: var(--toad-text-light);
}

.toad-leader-stats {
    text-align: right;
}

.toad-leader-toads {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--toad-primary);
}

.toad-leader-label {
    font-size: 12px;
    color: var(--toad-text-light);
}

.toad-leaderboard-cta {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: var(--toad-bg);
    border-radius: var(--toad-radius);
}

/* Map Popup */
.toad-popup {
    min-width: 200px;
}

.toad-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.toad-popup-date {
    font-size: 12px;
    color: var(--toad-text-light);
}

.toad-popup-body p {
    margin: 5px 0;
    font-size: 14px;
}

.toad-popup-reporter {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--toad-border);
}

.toad-popup-photo img {
    max-width: 100%;
    border-radius: 4px;
    margin-top: 10px;
}

/* Password Strength Meter */
.password-strength-meter {
    margin: 10px 0 20px;
}

.password-strength-meter .strength-bar {
    height: 4px;
    border-radius: 2px;
    background-color: #ddd;
    transition:
        width 0.3s,
        background-color 0.3s;
    width: 0;
}

.password-strength-meter .strength-text {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Form Hint */
.toad-form-hint {
    font-size: 12px;
    color: var(--toad-text-light);
    margin-top: 5px;
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .toad-dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .toad-user-welcome {
        flex-direction: column;
    }

    .toad-form-row {
        flex-direction: column;
    }

    .toad-form-half {
        width: 100%;
    }

    .toad-map-filters {
        flex-direction: column;
    }

    .toad-map-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* GPS Status Indicator */
.toad-gps-status,
#gps-status {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
    display: none;
}

.toad-gps-status.success,
#gps-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.toad-gps-status.error,
#gps-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.toad-gps-status.warning,
#gps-status.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

#gps-status small {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.9;
}

/* Mobile Quick Report Section */
.toad-quick-report-mobile {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.toad-quick-report-mobile .toad-btn {
    margin: 10px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toad-quick-report-mobile .toad-form-hint {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    font-size: 14px;
}

/* Spinner animation for buttons */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

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

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .toad-form-map {
        height: 250px;
        margin-bottom: 15px;
    }

    .toad-quick-report-mobile {
        position: sticky;
        top: 70px;
        z-index: 100;
        margin: 0 -20px 20px;
        border-radius: 0;
    }

    #use-my-location {
        width: 100%;
    }

    .toad-gps-status {
        font-size: 13px;
        padding: 8px 12px;
    }

    /* Larger touch targets for mobile */
    .toad-btn {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 16px;
    }

    .toad-btn-large {
        min-height: 56px;
        font-size: 18px;
    }
}

/* ========================================
   ENHANCED FEATURES STYLES
   ======================================== */

/* Draft Status */
.toad-draft-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    margin: 10px 0;
}

.toad-draft-status .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Form Submission States */
.btn-loading .btn-text {
    display: none !important;
}

.btn-loading .btn-loading {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.btn-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Required Field Errors */
.field-error {
    border-color: #f44336 !important;
    background: #ffebee !important;
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Success Overlay */
.toad-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.toad-success-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.toad-success-card h2 {
    color: #2e7d32;
    margin: 0 0 10px 0;
    font-size: 28px;
}

.success-message {
    color: #666;
    font-size: 18px;
    margin: 0 0 30px 0;
}

.success-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.success-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    font-size: 40px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2e7d32;
}

.stat-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.success-actions .toad-btn {
    flex: 1;
    max-width: 200px;
}

/* User Messages - Large, Clear, Senior-Friendly */
.toad-user-message {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 320px;
    max-width: 90%;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    display: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    animation: slideDown 0.4s ease;
    text-align: center;
}

.toad-user-message .message-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 24px;
}

.toad-user-message .message-text {
    display: inline;
}

.toad-user-message.message-success {
    background: #4caf50;
    color: white;
}

.toad-user-message.message-success .message-icon::before {
    content: "✓";
}

.toad-user-message.message-error {
    background: #f44336;
    color: white;
}

.toad-user-message.message-error .message-icon::before {
    content: "✕";
}

.toad-user-message.message-warning {
    background: #ff9800;
    color: white;
}

.toad-user-message.message-warning .message-icon::before {
    content: "⚠";
}

.toad-user-message.message-info {
    background: #2196f3;
    color: white;
}

.toad-user-message.message-info .message-icon::before {
    content: "ℹ";
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Offline Status Banner */
.toad-offline-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toad-offline-banner .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Duplicate Warning */
.toad-warning-banner {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 15px 0;
}

/* Quick Templates */
.toad-quick-templates {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.toad-quick-templates h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2e7d32;
}

.toad-template-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.toad-template-btn {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #495057;
}

.toad-template-btn:hover {
    border-color: #2e7d32;
    background: #e8f5e9;
    color: #2e7d32;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.toad-template-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.toad-template-btn.toad-template-active {
    border-color: #2e7d32;
    background: #2e7d32;
    color: white;
}

/* GPS Accuracy Indicator */
.toad-gps-accuracy {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.toad-gps-accuracy .accuracy-label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.toad-gps-accuracy .accuracy-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.toad-gps-accuracy .accuracy-fill {
    height: 100%;
    transition:
        width 0.5s ease,
        background-color 0.3s ease;
    border-radius: 10px;
}

.toad-gps-accuracy .accuracy-fill.excellent {
    background: linear-gradient(90deg, #51cf66, #37b24d);
}

.toad-gps-accuracy .accuracy-fill.good {
    background: linear-gradient(90deg, #94d82d, #82c91e);
}

.toad-gps-accuracy .accuracy-fill.fair {
    background: linear-gradient(90deg, #fcc419, #fab005);
}

.toad-gps-accuracy .accuracy-fill.poor {
    background: linear-gradient(90deg, #ff8787, #fa5252);
}

.toad-gps-accuracy .accuracy-text {
    font-size: 12px;
    color: #495057;
    text-align: center;
    font-weight: 600;
}

/* Photo Preview */
.toad-photo-preview {
    margin: 10px 0;
    position: relative;
}

.toad-photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

.photo-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.95);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 10;
}

.photo-remove-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.photo-remove-btn:active {
    transform: scale(0.95);
}

.photo-remove-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Undo Button */
.toad-undo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff9800;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
    animation: slideInRight 0.3s ease;
}

.toad-undo-btn:hover {
    background: #f57c00;
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.toad-undo-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

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

/* Context Menu */
.toad-context-menu {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 180px;
    overflow: hidden;
    animation: contextMenuAppear 0.15s ease;
}

@keyframes contextMenuAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.context-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-menu-item:hover {
    background: #f5f5f5;
}

.context-menu-item:active {
    background: #e0e0e0;
}

.context-menu-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.context-menu-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Template Active State */
.toad-template-btn.toad-template-active {
    border-color: #2e7d32;
    background: #2e7d32;
    color: white;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
    position: relative;
}

.toad-template-btn.toad-template-active::after {
    content: "\2713";
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: #2e7d32;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Restore Draft Button */
#restore-draft-btn {
    margin: 10px 0;
}

#restore-draft-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Mobile Optimizations for New Features */
@media (max-width: 768px) {
    .toad-template-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .toad-template-btn {
        padding: 10px 8px;
        font-size: 12px;
    }

    .toad-template-btn .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .toad-offline-banner,
    .toad-warning-banner {
        font-size: 13px;
        padding: 10px 15px;
    }
}

/* Character Counter */
.character-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.character-counter.counter-warning {
    color: #d63638;
    font-weight: 600;
}

.counter-current {
    font-weight: 600;
}

/* Voice Input Styles */
.toad-voice-input-container {
    position: relative;
}

.toad-voice-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--toad-primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
    z-index: 10;
}

.toad-voice-btn:hover {
    background: var(--toad-primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

.toad-voice-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.toad-voice-btn .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.toad-voice-btn.recording {
    background: #f44336;
    animation: pulse-recording 1.5s infinite;
}

@keyframes pulse-recording {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }
}

.toad-voice-status {
    margin-top: 8px;
    padding: 8px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 14px;
    border-left: 3px solid #1976d2;
    animation: slideDown 0.3s ease;
}

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

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

.toad-voice-input-container textarea {
    padding-right: 60px;
}

/* Improved Focus States for Accessibility */
.toad-btn:focus,
.toad-button:focus,
.toad-template-btn:focus {
    outline: 3px solid #0073aa;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
}

.toad-btn:focus:not(:focus-visible),
.toad-button:focus:not(:focus-visible),
.toad-template-btn:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Loading Animation for What3Words */
.toad-input-with-icon input[value*="loading"],
.toad-input-with-icon input[value*="retrying"] {
    background-image: linear-gradient(90deg,
            #f0f0f1 25%,
            transparent 25%,
            transparent 50%,
            #f0f0f1 50%,
            #f0f0f1 75%,
            transparent 75%,
            transparent);
    background-size: 40px 40px;
    animation: w3wLoading 1s linear infinite;
}

@keyframes w3wLoading {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 0;
    }
}

/* Accessibility - Skip Navigation */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0073aa;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid #ffb900;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {

    .toad-btn,
    .toad-button {
        border-width: 2px;
    }

    .toad-form-group input,
    .toad-form-group select,
    .toad-form-group textarea {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Manual Location Entry Mode */
.toad-location-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.toad-location-buttons .toad-btn {
    flex: 1;
    min-width: 180px;
}

#manual-location-toggle.active {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

/* Quick Edit Styles (Patrol Leaders Only) */
.toad-sighting-item.quick-edit-enabled {
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.toad-sighting-item.quick-edit-enabled:hover {
    background: #f8f9fa;
}

.toad-sighting-item.touching {
    transition: transform 0.1s linear;
}

.swipe-indicator {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 125, 50, 0.1);
    color: var(--toad-primary);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s;
}

.toad-sighting-item:hover .swipe-indicator {
    opacity: 1;
}

.toad-quick-edit-panel {
    max-width: 500px;
    width: 90%;
}

.quick-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.quick-edit-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--toad-primary);
}

.quick-edit-header .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.quick-edit-header .close-modal {
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.quick-edit-header .close-modal:hover {
    background: #f0f0f0;
    color: #000;
}

.quick-edit-body {
    padding: 20px;
}

.quick-edit-field {
    margin-bottom: 16px;
}

.quick-edit-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--toad-text);
    font-size: 14px;
}

.quick-edit-field input,
.quick-edit-field select,
.quick-edit-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.quick-edit-field input:focus,
.quick-edit-field select:focus,
.quick-edit-field textarea:focus {
    outline: none;
    border-color: var(--toad-primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.quick-edit-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #ddd;
    background: #f8f9fa;
}

.quick-edit-footer .toad-btn {
    min-width: 120px;
}

/* Modal Styles */
.toad-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toad-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.toad-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .toad-quick-edit-panel {
        width: 95%;
        max-width: 100%;
    }

    .quick-edit-footer {
        flex-direction: column;
    }

    .quick-edit-footer .toad-btn {
        width: 100%;
    }
}

/* GPS Route Tracking Styles */
.toad-tracking-controls {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0;
    min-width: 200px;
}

.tracking-panel {
    padding: 10px;
}

.tracking-btn {
    width: 100%;
    background: var(--toad-primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.tracking-btn:hover {
    background: var(--toad-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.3);
}

.tracking-btn.active {
    background: #f44336;
    animation: pulse-tracking 2s infinite;
}

@keyframes pulse-tracking {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(244, 67, 54, 0);
    }
}

.tracking-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.tracking-stats {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
}

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

.stat-value {
    font-weight: 700;
    color: var(--toad-primary);
    flex: 1;
}

.stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracking-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tracking-action-btn {
    flex: 1;
    min-width: 70px;
    padding: 8px 10px;
    background: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
}

.tracking-action-btn:hover {
    background: #e0e0e0;
}

.tracking-action-btn.stop-btn {
    background: #ffebee;
    color: #c62828;
}

.tracking-action-btn.stop-btn:hover {
    background: #ffcdd2;
}

.tracking-action-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Route markers */
.route-marker {
    background: transparent;
    border: none;
}

.route-marker .marker-pin {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.start-marker .marker-pin {
    animation: bounce-marker 1s infinite;
}

@keyframes bounce-marker {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Tracking notifications */
.toad-tracking-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.toad-tracking-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toad-tracking-notification.success {
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.toad-tracking-notification.error {
    border-left: 4px solid #f44336;
    color: #c62828;
}

.toad-tracking-notification.info {
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

@media (max-width: 768px) {
    .toad-tracking-controls {
        min-width: 180px;
    }

    .tracking-btn {
        font-size: 13px;
        padding: 8px 12px;
    }

    .stat-item {
        font-size: 12px;
    }

    .tracking-action-btn {
        font-size: 11px;
        padding: 6px 8px;
    }

    .toad-tracking-notification {
        right: 10px;
        top: 10px;
        font-size: 13px;
    }
}

#manual-location-toggle.active:hover {
    background: #1b5e20;
    border-color: #1b5e20;
}

.manual-entry-active {
    background: #fff9e6 !important;
    border-color: #ff9800 !important;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2) !important;
}

.manual-entry-active:focus {
    background: #fff !important;
    border-color: #0073aa !important;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2) !important;
}

#manual-entry-help {
    margin-top: 8px;
    padding: 10px 12px;
    background: #e7f5ff;
    border-left: 3px solid #1976d2;
    border-radius: 4px;
    font-size: 13px;
}

/* Offline Queue Indicator */
.offline-queue-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff9800;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

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

.offline-queue-status .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Mobile Responsive Adjustments (Small phones only - below 481px) */
@media (max-width: 480px) {

    /* Force mobile viewport */
    body {
        overflow-x: hidden;
    }

    .toad-location-buttons {
        flex-direction: column;
    }

    .toad-location-buttons .toad-btn {
        width: 100%;
        min-width: auto;
    }

    .offline-queue-status {
        bottom: 10px;
        right: 10px;
        left: 10px;
        justify-content: center;
    }

    /* Dashboard Header Mobile */
    .toad-dashboard-header {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 15px !important;
    }

    .toad-user-welcome {
        flex-direction: column !important;
        text-align: center !important;
        width: 100% !important;
    }

    .toad-user-info h1 {
        font-size: 20px !important;
    }

    .toad-dashboard-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .toad-dashboard-actions .toad-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
    }

    /* Mobile fixes for dashboard forms */
    .toad-wildlife-entry-dashboard {
        padding: 15px !important;
        margin: 10px 0 !important;
    }

    #dashboard-wildlife-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    #dashboard-wildlife-form>div {
        width: 100% !important;
    }

    .toad-dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .toad-dashboard-section {
        padding: 15px !important;
        margin: 10px 0 !important;
    }

    .toad-activity-item {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    .toad-activity-date {
        align-self: flex-start !important;
    }

    .toad-activity-actions {
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100% !important;
    }

    .delete-wildlife-entry {
        width: 100% !important;
        margin-top: 8px !important;
    }

    /* Volunteer Management Mobile */
    .stats {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .stat-card {
        padding: 15px !important;
    }

    .filters {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .filter-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 5px !important;
    }

    .filter-group select,
    .filter-group input {
        width: 100% !important;
    }

    /* Table horizontal scrolling on mobile */
    .content {
        padding: 15px !important;
        overflow-x: auto !important;
    }

    table {
        min-width: 600px !important;
        font-size: 13px !important;
    }

    th,
    td {
        padding: 8px !important;
    }

    .user-info {
        font-size: 13px !important;
    }

    .actions {
        flex-direction: column !important;
        gap: 5px !important;
    }

    .btn {
        width: 100% !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    /* Back to Dashboard Button Mobile */
    .back-to-dashboard {
        position: static !important;
        margin: 10px 15px !important;
        width: calc(100% - 30px) !important;
    }

    /* Ensure all inputs and buttons fit on mobile */
    input[type="number"],
    input[type="text"],
    input[type="email"],
    input[type="password"],
    select,
    textarea,
    button,
    button.toad-btn,
    .toad-btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        /* Prevents iOS zoom on focus */
    }

    /* Form labels mobile */
    label {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    /* Modal dialogs on mobile */
    .modal,
    .toad-modal {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px auto !important;
    }

    /* Prevent text overflow */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Profile sections mobile */
    .profile-section,
    .toad-profile-section {
        padding: 15px !important;
        margin: 10px 0 !important;
    }

    /* Wildlife entry info box - better wrapping on mobile */
    .toad-wildlife-entry-dashboard p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .toad-wildlife-entry-dashboard h3 {
        font-size: 18px !important;
        flex-wrap: wrap !important;
    }

    /* Current totals display - stack on mobile */
    .toad-wildlife-entry-dashboard div[style*="rgba(255,255,255,0.15)"] p {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }

    .toad-wildlife-entry-dashboard div[style*="rgba(255,255,255,0.15)"] span {
        display: block !important;
    }
}

/* Tablet Optimizations (769px - 1024px) - Above mobile breakpoint */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Dashboard header on tablets */
    .toad-dashboard-header {
        flex-wrap: wrap;
        gap: 15px;
        padding: 20px;
    }

    .toad-user-welcome {
        flex: 1;
        min-width: 280px;
    }

    .toad-dashboard-actions {
        flex-direction: row;
        gap: 10px;
    }

    .toad-dashboard-actions .toad-btn {
        flex: 1;
        min-width: 140px;
    }

    /* Wildlife data entry form - 2 columns on tablet */
    #dashboard-wildlife-form {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #dashboard-wildlife-form>div:last-child {
        grid-column: 1 / -1;
    }

    /* Dashboard grid - single column on smaller tablets */
    .toad-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Activity items - better spacing */
    .toad-activity-item {
        gap: 15px;
        padding: 15px;
    }

    .toad-activity-actions {
        margin-left: auto;
    }

    .delete-wildlife-entry {
        width: auto;
        min-width: 100px;
    }

    /* Volunteer stats in sidebar - 2 columns */
    .toad-admin-stats-mini {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Table responsiveness */
    .content {
        overflow-x: auto;
    }

    table {
        font-size: 14px;
    }

    th,
    td {
        padding: 10px;
    }
}

/* Small tablet / large phone (481px - 768px) - Enhanced layout */
@media (min-width: 481px) and (max-width: 768px) {

    /* Wildlife form - 2 columns layout */
    #dashboard-wildlife-form {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #dashboard-wildlife-form>div:nth-child(3),
    #dashboard-wildlife-form>div:nth-child(4) {
        grid-column: 1 / -1;
    }

    /* Activity list items - horizontal layout */
    .toad-activity-item {
        flex-direction: row !important;
        align-items: center !important;
    }

    .toad-activity-details {
        flex: 1;
    }

    .toad-activity-actions {
        margin-left: auto !important;
        width: auto !important;
    }

    .delete-wildlife-entry {
        width: auto !important;
        margin-top: 0 !important;
        min-width: 90px;
    }

    /* Dashboard grid single column */
    .toad-dashboard-grid {
        grid-template-columns: 1fr;
    }

    /* Dashboard header flex wrap */
    .toad-dashboard-header {
        flex-wrap: wrap;
    }
}

/* Landscape phone improvements (up to 900px wide in landscape) */
@media (max-width: 900px) and (orientation: landscape) {
    .toad-wildlife-entry-dashboard {
        padding: 15px !important;
    }

    #dashboard-wildlife-form {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #dashboard-wildlife-form>div:last-child {
        grid-column: 1 / -1;
    }

    .toad-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Toast Notification System */
.toad-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-in-out;
    max-width: 400px;
    word-wrap: break-word;
}

.toad-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toad-notification-success {
    background: #4caf50;
    color: white;
    border-left: 4px solid #2e7d32;
}

.toad-notification-error {
    background: #f44336;
    color: white;
    border-left: 4px solid #c62828;
}

.toad-notification-warning {
    background: #ff9800;
    color: white;
    border-left: 4px solid #f57c00;
}

.toad-notification-info {
    background: #2196f3;
    color: white;
    border-left: 4px solid #1976d2;
}

/* Mobile notification positioning */
@media (max-width: 480px) {
    .toad-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 13px;
        padding: 12px 15px;
    }
}
