/* Style untuk Aplikasi Pengelola Pelanggaran Ambalan Joko Tole Putri Koening */

:root {
  --primary-color: #87CEEB; /* Warna biru langit */
  --secondary-color: #1E90FF;
  --accent-color: #4169E1;
  --text-color: #333;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 60px;
  margin-right: 15px;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--dark-color);
}

/* Main Content Styles */
main {
  padding: 2rem 0;
  min-height: calc(100vh - 180px);
}

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header {
  background-color: var(--primary-color);
  color: var(--dark-color);
  padding: 1rem;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

.card-body {
  padding: 1rem;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: var(--primary-color);
  color: var(--dark-color);
}

table tr:hover {
  background-color: #f5f5f5;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  font-weight: 500;
  border: none;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-color);
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-info {
  background-color: var(--primary-color);
  color: var(--dark-color);
}

.btn-info:hover {
  background-color: #75bcd6;
}

/* Footer Styles */
footer {
  background-color: var(--primary-color);
  color: var(--dark-color);
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.mobile-nav ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  padding: 0.5rem 0;
}

.mobile-nav li {
  text-align: center;
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--dark-color);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.5rem;
}

.mobile-nav i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* Desktop Navigation */
.desktop-nav ul {
  display: flex;
  list-style: none;
}

.desktop-nav li {
  margin-left: 1.5rem;
}

.desktop-nav a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.desktop-nav a:hover {
  color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
  
  main {
    padding-bottom: 5rem; /* Space for mobile navigation */
    min-height: calc(100vh - 230px);
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .logo-container {
    margin-bottom: 1rem;
    justify-content: center;
  }
  
  .site-title {
    font-size: 1.2rem;
  }
}

/* Detail Anggota Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

.modal-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 15px;
}

.modal-body {
  margin-bottom: 15px;
}

.modal-footer {
  padding-top: 10px;
  border-top: 1px solid #ddd;
  text-align: right;
}

.detail-item {
  margin-bottom: 10px;
}

.detail-label {
  font-weight: bold;
  display: inline-block;
  width: 150px;
}
