/* RESET */ 

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

body { 
	font-family: Arial, sans-serif; 
	background: #f5f9ff; 
	color: #1e293b; 
	line-height: 1.6; 
} 

/* CONTAINER */ 

.container { 
	width: 90%; 
	max-width: 1200px; 
	margin: auto; 
} 

/* HEADER */ 

.header { 
	background: white; 
	border-bottom: 1px solid #e2e8f0; 
	position: sticky; 
	top: 0; 
	z-index: 1000; 
} 

.nav-container { 
	display: flex; 
	justify-content: space-between; 
	align-items: center; 
	height: 80px; 
} 

.logo { 
	font-size: 1.3rem; 
	font-weight: bold; 
} 

.nav-links { 
	display: flex; 
	list-style: none; 
	gap: 25px; 
} 

.nav-links a { 
	text-decoration: none; 
	color: #1e293b; 
	font-weight: 500; 
} 

.nav-links a:hover { 
	color: #4fa3ff; 
} 

.btn-small { 
	background: #4fa3ff; 
	color: white !important; 
	padding: 10px 18px; 
	border-radius: 8px; 
} 

/* HAMBURGER */ 

.hamburger { 
	display: none; 
	font-size: 2rem; 
	cursor: pointer; 
} 

.mobile-menu { 
	display: none; 
	flex-direction: column; 
	background: white; 
	padding: 20px; 
	border-bottom: 1px solid #e2e8f0; 
} 

.mobile-menu a { 
	padding: 12px 0; 
	text-decoration: none; 
	color: #1e293b; 
} 

/* HERO */ 

.hero { 
	padding: 100px 0; 
	text-align: center; 
} 

.hero h1 { 
	font-size: 3.5rem; 
	line-height: 1.2; 
	margin-bottom: 25px; 
} 

.hero p { 
	max-width: 700px; 
	margin: auto; 
	font-size: 1.2rem; 
	color: #475569; 
} 

.hero-buttons { 
	margin-top: 40px; 
	display: flex; 
	justify-content: center; 
	gap: 20px; 
} 

/* BUTTONS */ 

.btn { 
	padding: 16px 32px; 
	border-radius: 12px; 
	text-decoration: none; 
	font-weight: bold; 
	transition: 0.3s; 
} 

.btn-primary { 
	background: #4fa3ff; 
	color: white; 
} 

.btn-primary:hover { 
	background: #318df0; 
} 

.btn-secondary { 
	background: #ffb86b; 
	color: white; 
} 

.btn-secondary:hover { 
	background: #f5a94f; 
} 

/* SECTIONS */ 

.latest-section, 
.info-section { 
	padding: 80px 0; 
} 

.section-header { 
	margin-bottom: 40px; 
} 

.section-header h2 { 
	font-size: 2rem; 
	margin-bottom: 10px; 
} 

/* TABLE */ 

.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
}

.balloon-table { 
	width: 100%; 
	border-collapse: collapse; 
	background: white; 
	border-radius: 16px; 
	overflow: hidden; 
	box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
} 

.balloon-table th { 
	background: #4fa3ff; 
	color: white; 
	padding: 18px; 
	text-align: left; 
} 

.balloon-table td { 
	padding: 18px; 
	border-bottom: 1px solid #e2e8f0; 
} 

.status-column {
    width: 110px;
    white-space: nowrap;
}

/* INFO CARD */ 

.info-card { 
	background: white; 
	padding: 50px; 
	border-radius: 20px; 
	box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
} 

.info-card h2 { 
	margin-bottom: 20px; 
} 

.info-card p { 
	margin-bottom: 15px; 
} 

/* FOOTER */ 

.footer { 
	background: white; 
	border-top: 1px solid #e2e8f0; 
	padding: 30px 0; 
	text-align: center; 
	margin-top: 60px; 
}

/* =========================
   REGISTER / LOGIN PAGES
========================= */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.auth-card h1 {
    margin-bottom: 10px;
    text-align: center;
}

.auth-card p {
    text-align: center;
    margin-bottom: 30px;
    color: #64748b;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4fa3ff;
}

.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.error-message {
    background: #fee2e2;
    color: #b91c1c;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.auth-link {
    margin-top: 25px;
    text-align: center;
}

.auth-link a {
    color: #4fa3ff;
    text-decoration: none;
    font-weight: bold;
}

/* =========================
   DASHBOARD
========================= */

.dashboard-section {
    padding: 60px 0;
}

.dashboard-welcome {
    margin-bottom: 40px;
}

.dashboard-welcome h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.dashboard-welcome p {
    color: #64748b;
}

.dashboard-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

.dashboard-card-header h2 {
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state p {
    margin-bottom: 20px;
    color: #64748b;
}

/* ========================= 
TEXTAREA 
========================= */ 

textarea { 
	resize: vertical; 
	min-height: 120px; 
}

/* ========================= 
BALLOON INFO 
========================= */ 

.balloon-info { 
	background: #f8fbff; 
	border: 1px solid #dbeafe; 
	padding: 25px; 
	border-radius: 16px; 
	margin-bottom: 30px; 
} 

.balloon-info h3 { 
	margin-bottom: 15px; 
} 

.balloon-meta { 
	margin-top: 10px; 
	color: #475569; 
} 

/* ========================= 
CHECKBOX 
========================= */ 

.checkbox-group { 
	display: flex; 
	align-items: center; 
	gap: 10px; 
	margin-bottom: 20px; 
} 

.checkbox-group input { 
	width: auto; 
}

/* =========================
   QR PREVIEW
========================= */

.qr-preview {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    background: white;
    padding: 5px;
    border: 1px solid #e2e8f0;
}

/* =========================
   BALLOON DETAIL
========================= */

.balloon-detail-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.balloon-subtitle {
    margin-top: 10px;
    color: #64748b;
}

.balloon-status {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}

.balloon-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-block {
    margin-bottom: 30px;
}

.info-block strong {
    display: block;
    margin-bottom: 10px;
}

.qr-large {
    margin-bottom: 20px;
}

.qr-large img {
    width: 220px;
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 10px;
    background: white;
}

/* =========================
   FINDS
========================= */

.find-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.find-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
}

.find-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.find-header h3 {
    margin-bottom: 5px;
}

.find-date {
    color: #64748b;
    white-space: nowrap;
}

.find-message {
    margin-bottom: 20px;
    line-height: 1.7;
}

.find-image img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 15px;
}

.find-email {
    font-size: 0.95rem;
    color: #475569;
}

/* =========================
   STATUS BADGES
========================= */

.status-found {
    background: #dcfce7;
    color: #166534;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-flight {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}


/* =========================
   TOOLTIP MESSAGE
========================= */

.message-tooltip {
    position: relative;
    cursor: pointer;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tooltip-text {

    visibility: hidden;
    opacity: 0;

    position: absolute;

    left: calc(100% + 10px);
    top: 50%;

    transform: translateY(-50%);

    background: #0f172a;
    color: white;

    padding: 14px 16px;

    border-radius: 12px;

    width: 260px;
    max-width: 90vw;

    font-size: 0.9rem;
    line-height: 1.5;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    transition: all 0.2s ease;

    z-index: 9999;

    pointer-events: none;
}

/* TOOLTIP ARROW */

.tooltip-text::after {

    content: "";

    position: absolute;

    right: 100%;
    top: 50%;

    transform: translateY(-50%);

    border-width: 8px;
    border-style: solid;

    border-color:
        transparent #0f172a transparent transparent;
}

.message-tooltip:hover .tooltip-text {

    visibility: visible;
    opacity: 1;
}

/* =========================
   MESSAGE MODAL
========================= */

.message-btn {

    background: none;
    border: none;

    cursor: pointer;

    font-size: 1.2rem;

    transition: transform 0.2s ease;
}

.message-btn:hover {
    transform: scale(1.15);
}

.message-modal {

    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.5);

    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.message-modal-content {

    background: white;

    width: 90%;
    max-width: 500px;

    padding: 30px;

    border-radius: 20px;

    position: relative;

    box-shadow:
        0 20px 40px rgba(0,0,0,0.15);
}

.message-modal-content h3 {

    margin-bottom: 20px;
}

#modalMessageText {

    line-height: 1.7;

    color: #475569;

    white-space: pre-wrap;
}

.message-close {

    position: absolute;

    top: 15px;
    right: 20px;

    font-size: 1.8rem;

    cursor: pointer;
}

/* =========================
   ADMIN STATS
========================= */

.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

    margin-bottom: 30px;
}

.stat-card {

    background: white;

    border-radius: 20px;

    padding: 25px;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.05);

    text-align: center;
}

.stat-card h3 {

    margin-bottom: 15px;

    color: #64748b;
}

.stat-number {

    font-size: 2rem;

    font-weight: 700;
}

/* =========================
   USER BADGES
========================= */

.badge-admin {

    background: #fef3c7;
    color: #92400e;

    padding: 6px 12px;

    border-radius: 999px;

    font-size: 0.85rem;
    font-weight: 600;
}

.badge-user {

    background: #dbeafe;
    color: #1d4ed8;

    padding: 6px 12px;

    border-radius: 999px;

    font-size: 0.85rem;
    font-weight: 600;
}

.badge-active {

    background: #dcfce7;
    color: #166534;

    padding: 6px 12px;

    border-radius: 999px;

    font-size: 0.85rem;
    font-weight: 600;
}

.badge-inactive {

    background: #fee2e2;
    color: #991b1b;

    padding: 6px 12px;

    border-radius: 999px;

    font-size: 0.85rem;
    font-weight: 600;
}

/* =========================
   ADMIN USER PAGE
========================= */

.admin-info-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;

    margin-top: 20px;
}

.admin-info-grid strong {

    display: block;

    margin-bottom: 8px;
}

.admin-actions {

    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}

.info-box {

    background: #fef3c7;
    color: #92400e;

    padding: 15px;

    border-radius: 12px;

    margin-bottom: 20px;
}

#suggestions {
    position: absolute;
    background: #fff;
    border: 0px solid #ddd;
    width: 100%;
    z-index: 999;
    max-height: 250px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #f5f5f5;
}

.footer-grid {

    display:grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:40px;

    margin-bottom:20px;
	
	text-align:left;
}

.footer-grid h3 {

    margin-bottom:10px;
}

.footer-grid p {

    margin-bottom:8px;
}

@media (max-width:768px) {

    .footer-grid {

        grid-template-columns:1fr;
    }
}