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

body { 
  margin:0; 
  padding:0; 
  font-family:'Montserrat', Arial, sans-serif; 
  background: linear-gradient(135deg, #3a5eff 0%, #1e2a78 100%);
  min-height: 100vh;
}

.header {
    background: #6ea0ff;
    color: #fff;
    padding: 0 0 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header h1 { 
  margin: 0 0 5px 10px; 
  font-size: 2.5em; 
  font-weight: 700;
}
.header p { 
  margin: 0 0 20px 10px; 
  font-size: 1.1em; 
}
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 30px;
    letter-spacing: 2px;
}
.admin-title {
    margin-right: 30px;
    font-size: 1.1em;
    font-weight: 600;
}

/* Modern Sidebar Redesign */
.sidebar {
    width: 260px;
    background: #3a5eff;
    color: #fff;
    float: left;
    min-height: 100vh;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.sidebar a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 16px 18px;
    font-weight: 700;
    font-size: 1.1em;
    transition: background 0.2s;
}
.sidebar a:hover, .sidebar .active {
    background: #1e2a78;
}
.sidebar a.logout {
  background: #ef4444;
  color: #fff !important;
  border-radius: 8px;
  margin: 12px 10px 0 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: background 0.2s;
}
.sidebar a.logout svg {
  fill: #fff;
}
.sidebar a.logout:hover {
  background: #b91c1c;
  color: #fff;
}

.content { 
  margin-left: 320px; 
  padding: 30px 0; 
  min-height: 100vh; 
  background: transparent; 
}

.box {
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(37,99,235,0.10);
    padding: 30px;
    margin: 0 30px 30px 30px;
    border: none;
    backdrop-filter: blur(2px);
}
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 30px 30px 0 30px;
}
.stat-card {
    background: linear-gradient(135deg, #3a5eff 60%, #6ea0ff 100%);
    color: #fff;
    border-radius: 16px;
    padding: 28px 0 20px 0;
    text-align: center;
    box-shadow: 0 2px 12px rgba(30,42,120,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 6px 24px rgba(30,42,120,0.18);
}
.stat-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #e0e7ef;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.stat-value {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffe600;
}

h2, h3 { 
  color: #1e2a78; 
  font-weight: 700;
}

.btn { 
  background: #c00; 
  color: #fff; 
  border: none; 
  padding: 8px 18px; 
  border-radius: 6px; 
  font-weight: 700; 
  cursor: pointer; 
  transition: background 0.2s;
  font-size: 1em;
}
.btn:hover { 
  background: #1e2a78; 
}

table { 
  border-collapse: collapse; 
  width: 100%; 
  margin: 20px 0; 
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
th { 
  background: #2563eb; 
  color: #fff; 
  font-weight: 700;
  border: 1px solid #e0e7ef;
}
td { 
  border: 1px solid #e0e7ef; 
  padding: 12px; 
  text-align: center; 
  color: #222;
}
tr:nth-child(even) { 
  background: #f4f8ff; 
}
tr:nth-child(odd) { 
  background: #fff; 
}

input,select { 
  padding: 10px; 
  border: 1px solid #b0b0b0; 
  border-radius: 6px; 
  margin: 6px 0; 
  font-size: 1em;
  font-family: 'Montserrat', Arial, sans-serif;
}

.alert {
  background: #d4edda;
  color: #155724;
  padding: 16px 24px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(30,42,120,0.08);
  border: 1px solid #b6e2c1;
  animation: fadeIn 0.7s;
}
.alert.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tambahkan style untuk footer modern */
.footer-modern { 
    background: linear-gradient(90deg, #2360b7, #1e2a78);
    color: #fff; 
    text-align: center; 
    padding: 24px 0;
    margin-top: 60px;
}
.footer-modern .footer-copyright { 
    background: #e53935; 
    color: #fff; 
    padding: 12px 0; 
    font-weight: 700; 
    letter-spacing: 1px; 
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 40px;
}
.footer-left {
    flex: 1;
    min-width: 200px;
}
.footer-right {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
@media (max-width: 900px) {
  .footer-flex { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-right { align-items: flex-start; margin-top: 20px; }
}

@media (max-width: 900px) {
  .sidebar { width: 100%; float: none; min-height: auto; border-radius: 0; }
  .content { margin-left: 0; }
  .box { margin: 0 10px; padding: 20px; }
}

@media (max-width: 600px) {
  .header h1 { font-size: 2em; }
  .header p { font-size: 1em; }
  .box { margin: 0 5px; padding: 15px; }
} 