@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background-color: #f4f7f6; color: #333; }

/* Header */
header { background: rgba(255, 255, 255, 0.95); padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
header h1 { color: #2563eb; font-size: 24px; font-weight: 700; }

/* Buttons */
.btn { background: #2563eb; color: #fff; padding: 10px 20px; text-decoration: none; border-radius: 50px; font-weight: 600; transition: 0.3s; border: none; cursor: pointer; display: inline-block; text-align: center; }
.btn:hover { background: #1d4ed8; transform: translateY(-2px); }
.btn-block { width: 100%; padding: 12px; font-size: 16px; }

/* Containers */
.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.login-container { max-width: 400px; margin: 80px auto; background: #fff; padding: 40px; border-radius: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); text-align: center; border: 1px solid #f3f4f6; }

/* Forms */
input[type="text"], input[type="password"], input[type="url"] { width: 100%; padding: 12px 15px; margin: 10px 0 20px; border: 1px solid #e5e7eb; border-radius: 8px; outline: none; transition: 0.3s; font-family: 'Poppins', sans-serif; }
input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.2); }
.form-group { text-align: left; margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; color: #374151; margin-bottom: 5px; font-size: 14px; }

/* Alerts */
.error { color: #ef4444; background: #fee2e2; padding: 10px; border-radius: 8px; margin-bottom: 15px; font-size: 14px; border: 1px solid #fecaca; }
.success { color: #10b981; background: #d1fae5; padding: 10px; border-radius: 8px; margin-bottom: 15px; font-size: 14px; border: 1px solid #a7f3d0; }

/* Grid & Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
.post-card { background: #fff; padding: 25px; border-radius: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #f3f4f6; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: #bfdbfe; }
.post-card h3 { color: #1f2937; margin-bottom: 15px; font-size: 18px; line-height: 1.4; }
.post-card a { color: #2563eb; text-decoration: none; font-weight: 600; display: inline-block; margin-right: 15px; margin-bottom: 15px; font-size: 14px; background: #eff6ff; padding: 5px 12px; border-radius: 6px; }
.post-card a:hover { background: #dbeafe; }
.post-card small { color: #9ca3af; font-size: 12px; margin-top: auto; }

/* Admin specifics */
.admin-nav { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.admin-nav a.btn { background: #f3f4f6; color: #374151; }
.admin-nav a.btn:hover { background: #e5e7eb; color: #2563eb; }
.admin-nav a.btn.active { background: #2563eb; color: #fff; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border: 1px solid #f3f4f6; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid #f3f4f6; }
th { background: #f9fafb; color: #374151; font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: 0.5px; }
tr:hover { background: #f9fafb; }
td { color: #4b5563; font-size: 15px; }