/* 
   GIS Desilting Management System
   Custom CSS Styles
*/

/* Global Styles */
:root {
    --brand-950: #081028;
    --brand-900: #0b1634;
    --brand-800: #12234a;
    --brand-700: #1d4ed8;
    --brand-600: #2563eb;
    --brand-500: #3b82f6;
    --surface: #ffffff;
    --bg: #f6f8fc;
    --text: #0f172a;
    --muted: #64748b;
    --border: rgba(15, 23, 42, 0.10);
    --shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(900px circle at 10% 0%, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0) 55%),
                radial-gradient(900px circle at 90% 10%, rgba(37, 99, 235, 0.10) 0%, rgba(37, 99, 235, 0) 55%),
                var(--bg);
    color: var(--text);
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.navbar-dark {
    background: linear-gradient(135deg, var(--brand-950) 0%, var(--brand-900) 40%, var(--brand-800) 100%) !important;
}

.navbar-brand img {
    margin-right: 8px;
}

/* Card Styles with 3D effect */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 65px rgba(15, 23, 42, 0.16);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-800) 100%);
    color: white;
    font-weight: bold;
    padding: 15px 20px;
}

/* Custom styling for stat cards */
.stat-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .card-body {
    position: relative;
    z-index: 1;
    padding: 1.25rem;
}

.stat-card .stat-icon {
    position: absolute;
    bottom: -10px;
    right: 10px;
    font-size: 4rem;
    opacity: 0.18;
    z-index: 0;
}

.stat-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-card .display-4 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0;
}

.stat-card.primary {
    background: linear-gradient(135deg, #1d4ed8 0%, #0b1634 100%);
    color: white;
}

.stat-card.success {
    background: linear-gradient(135deg, #10b981 0%, #065f46 100%);
    color: white;
}

.stat-card.info {
    background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%);
    color: white;
}

.stat-card.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: white;
}

.stat-card.danger {
    background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
    color: white;
}

.stat-card.purple {
    background: linear-gradient(135deg, #7c3aed 0%, #312e81 100%);
    color: white;
}

/* Map container */
#map {
    height: 500px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* Form styling */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.18);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
    border-color: transparent;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border-color: transparent;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: transparent;
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.22);
}

.btn-success:hover, .btn-success:focus {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: transparent;
}

.btn-info {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.btn-info:hover, .btn-info:focus {
    background-color: #0a58ca;
    border-color: #0a58ca;
    color: white;
}

/* Image gallery */
.report-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.report-image-item {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.report-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.report-image-item img:hover {
    transform: scale(1.05);
}

/* Custom table styling */
.table-custom {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.table-custom th {
    background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-800) 100%);
    color: white;
    padding: 12px 15px;
    font-weight: 500;
}

.table-custom tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.06);
}

.table-custom td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Dropdown styling */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.dropdown-item {
    padding: 8px 20px;
}

.dropdown-item:hover {
    background-color: rgba(37, 99, 235, 0.10);
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #map {
        height: 350px;
    }
    
    .report-image-item {
        width: 100px;
        height: 100px;
    }
    
    .stat-card .stat-icon {
        font-size: 2rem;
    }
} 
