/* Reset & base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0073aa, #00a0d2);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Card container (login) */
.login-container {
  width: 100%;
  max-width: 380px;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  animation: fadeIn 0.5s ease;
}

/* Dashboard container */
.dashboard {
  width: 100%;
  max-width: 1000px;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  animation: fadeIn 0.5s ease;
}

/* Headings */
.login-container h2,
.dashboard h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.dashboard h3 {
  margin: 20px 0 10px;
  color: #444;
}

/* Inputs */
input {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

input:focus {
  border-color: #0073aa;
  outline: none;
}

/* Buttons */
button {
  padding: 10px 14px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}

button:hover {
  background: #005f8d;
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* Action buttons in table */
.btn-action {
  margin: 2px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: normal;
}

.btn-action[data-action="sms"] {
  background: #0073aa;
}
.btn-action[data-action="location"] {
  background: #28a745;
}
.btn-action[data-action="screenshot"] {
  background: #ffc107;
  color: #000;
}
.btn-action[data-action="camera"] {
  background: #dc3545;
}

/* Messages */
#message {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

table thead {
  background: #0073aa;
  color: #fff;
}

table th,
table td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: middle;
}

table tbody tr {
  border-bottom: 1px solid #ddd;
}

table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

table tbody tr:hover {
  background: #f1f1f1;
}

table th:last-child,
table td:last-child {
  text-align: center;
}
