/* =========================================
   Estimation Hub - Public Page CSS
========================================= */

body { 
    background-color: #0f172a; 
    color: #f8fafc; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding: 0; 
}

/* Header */
.public-header { 
    background: #1e293b; 
    padding: 20px; 
    text-align: center; 
    border-bottom: 2px solid #3b82f6; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); 
}
.public-header h1 { 
    margin: 0; 
    color: #fff; 
    font-size: 28px; 
    letter-spacing: 1px; 
}
.public-header span { color: #3b82f6; }
.public-header p { 
    color: #94a3b8; 
    margin: 8px 0 0 0; 
    font-size: 15px; 
}

/* Container & Layout */
.container { 
    max-width: 1200px; 
    margin: 30px auto; 
    padding: 0 20px; 
}

/* Search Box */
.search-box { 
    background-color: #1e293b; 
    padding: 20px; 
    border-radius: 8px; 
    margin-bottom: 30px; 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
    border: 1px solid #334155; 
}
.form-control { 
    flex: 1; 
    min-width: 200px; 
    padding: 12px; 
    background-color: #0f172a; 
    border: 1px solid #334155; 
    color: #fff; 
    border-radius: 6px; 
    font-size: 15px; 
}
.form-control:focus { outline: none; border-color: #3b82f6; }

.btn-primary { 
    background-color: #2563eb; 
    color: white; 
    padding: 12px 25px; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: 0.3s; 
}
.btn-primary:hover { background-color: #1d4ed8; }

.btn-clear { 
    background-color: #475569; 
    color: white; 
    padding: 12px 25px; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: bold; 
    text-align: center; 
    display: inline-block; 
}

/* Files Grid */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 20px; 
}

/* File Card */
.file-card { 
    background-color: #1e293b; 
    border-radius: 8px; 
    padding: 20px; 
    border: 1px solid #334155; 
    transition: transform 0.2s, box-shadow 0.2s; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}
.file-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5); 
    border-color: #3b82f6; 
}

.file-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 15px; 
}
.file-title { 
    font-size: 18px; 
    font-weight: bold; 
    color: #f1f5f9; 
    margin: 0; 
    line-height: 1.4; 
}
.file-date { 
    font-size: 12px; 
    color: #64748b; 
    margin-top: 5px; 
}

.badge { 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 11px; 
    font-weight: bold; 
    letter-spacing: 0.5px; 
    text-transform: uppercase; 
}
.badge-pdf { background-color: #fee2e2; color: #ef4444; border: 1px solid #f87171; }
.badge-excel { background-color: #d1fae5; color: #10b981; border: 1px solid #34d399; }

.category-tag { 
    display: inline-block; 
    background-color: #0f172a; 
    color: #38bdf8; 
    padding: 5px 10px; 
    border-radius: 4px; 
    font-size: 12px; 
    margin-bottom: 15px; 
    border: 1px solid #0284c7; 
}

.btn-download { 
    display: block; 
    text-align: center; 
    background-color: #10b981; 
    color: white; 
    padding: 10px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: 0.3s; 
}
.btn-download:hover { background-color: #059669; }

.empty-state { 
    text-align: center; 
    padding: 50px; 
    color: #94a3b8; 
    background: #1e293b; 
    border-radius: 8px; 
    border: 1px dashed #475569; 
}
