/* Login Screen Styles */
.login-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.role-selection h5 {
    color: #2d5016;
    font-weight: 600;
}

.role-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.role-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.role-card:hover {
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.2);
}

.role-card:active {
    transform: translateY(0);
}

.role-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-features {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
}

.role-features .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Explore Section Styles */
.explore-section {
    padding-bottom: 1rem;
}

.search-section .input-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.search-section .input-group-text {
    border: none;
    background: #f8f9fa;
}

.search-section .form-control {
    border: none;
    font-size: 0.9rem;
}

.search-section .form-control:focus {
    box-shadow: none;
    background: #f8f9fa;
}

.nature-spot-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nature-spot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.nature-spot-card .card-img {
    height: 150px;
    object-fit: cover;
    width: 100%;
}

.nature-spot-card .card-body {
    padding: 1rem;
}

.nature-spot-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.nature-spot-card .card-text {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.wildlife-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.wildlife-tags .badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
}

/* Identify Section Styles */
.identify-section {
    padding-bottom: 1rem;
}

.camera-viewfinder {
    position: relative;
    height: 300px;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.viewfinder-corners {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #28a745;
}

.corner.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.corner.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.corner.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.corner.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.camera-info {
    align-self: flex-start;
}

.camera-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.camera-snap-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: 4px solid white;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.camera-snap-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(220, 53, 69, 0.5);
}

.camera-snap-btn:active {
    transform: scale(0.95);
}

.camera-snap-btn .small {
    font-size: 0.6rem;
    margin-top: 0.25rem;
}

.ai-result-card {
    animation: slideInUp 0.5s ease-out;
}

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

.ai-loading {
    padding: 3rem 1rem;
}

.ai-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

.match-confidence {
    background: linear-gradient(to right, rgba(40, 167, 69, 0.1), transparent);
    padding: 0.75rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.species-description {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

/* Role-based Navigation Styles */
.explorer-nav .nav-btn {
    min-width: 70px;
}

.admin-nav .nav-btn {
    min-width: 100px;
}

/* Responsive adjustments for login */
@media (max-height: 700px) {
    .login-container {
        min-height: auto;
        padding: 1rem;
    }
    
    .logo-container {
        width: 60px;
        height: 60px;
    }
    
    .role-card {
        padding: 1rem;
    }
    
    .role-icon {
        width: 50px;
        height: 50px;
    }
}

/* Overall Mobile Container */
.mobile-container {
    max-width: 450px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Header Styles */
.app-header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c28 100%) !important;
    border-bottom: 2px solid #3a5f1f;
    flex-shrink: 0;
}

/* Main Content Area */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* View Sections - SPA Navigation */
.view-section {
    display: none;
    min-height: 100%;
}

.view-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Map Container Styles */
.map-container {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Map Pins */
.map-pin {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 1.2rem;
    border: 3px solid #28a745;
}

.map-pin:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 10;
}

.map-pulse {
    animation: pulse 2s infinite;
}

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

/* Map Controls */
.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
}

.map-controls .btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Info Panel Styles */
.info-panel {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sighting-item {
    transition: background-color 0.2s ease;
}

.sighting-item:hover {
    background-color: rgba(40, 167, 69, 0.05);
}

/* Emergency Form Styles */
.emergency-form .alert {
    border-radius: 12px;
    border-left: 4px solid #ffc107;
}

.emergency-form .form-control,
.emergency-form .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

.emergency-form .form-control:focus,
.emergency-form .form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.emergency-form .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.emergency-form .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.emergency-form .btn-danger:active {
    transform: translateY(0);
}

/* Admin Dashboard Styles */
.admin-dashboard .card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.admin-dashboard .card:hover {
    transform: translateY(-2px);
}

.report-card {
    border-left: 4px solid #28a745;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.report-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.report-card.high-priority {
    border-left-color: #dc3545;
    background: linear-gradient(to right, rgba(220, 53, 69, 0.05), transparent);
}

.report-card.medium-priority {
    border-left-color: #ffc107;
    background: linear-gradient(to right, rgba(255, 193, 7, 0.05), transparent);
}

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
}

.nav-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #6c757d;
    transition: all 0.2s ease;
    border-radius: 8px;
    min-width: 60px;
}

.nav-btn:hover {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.nav-btn.active {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.nav-btn i {
    font-size: 1.25rem;
}

.nav-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Emergency Button Animation */
.nav-btn[data-view="emergencyView"] {
    position: relative;
}

.nav-btn[data-view="emergencyView"]::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .mobile-container {
        max-width: 100%;
        height: 100vh;
        margin: 0;
    }
}

@media (min-width: 451px) {
    body {
        background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }
}

/* Custom Scrollbar */
.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.main-content::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #218838;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error States */
.success-message {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
}

.error-message {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
}

/* Tooltip Styles */
.tooltip-custom {
    position: absolute;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

/* Priority Badges */
.priority-high {
    background: #dc3545;
    color: white;
}

.priority-medium {
    background: #ffc107;
    color: #212529;
}

.priority-low {
    background: #28a745;
    color: white;
}

/* Status Indicators */
.status-pending {
    background: #ffc107;
    color: #212529;
}

.status-in-progress {
    background: #17a2b8;
    color: white;
}

.status-resolved {
    background: #28a745;
    color: white;
}

/* Animation Classes */
.slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
