﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500;700&display=swap');

body {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(135deg, #007f5f, #2b9348, #80b918, #ffb703);
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.container {
  max-width: 420px;
  margin: 30px auto;
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
}

.logo {
  width: 120px;
  margin-bottom: 15px;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

h1 {
  font-size: 20px;
  margin: 10px 0;
  color: #fff;
  line-height: 1.5;
}

.glow {
  color: #ff8800;
  text-shadow: 0 0 12px #ff8800, 0 0 25px #ff8800;
  margin-bottom: 20px;
  font-weight: 700;
}

label {
  display: block;
  text-align: right;
  margin-top: 10px;
  font-weight: bold;
  color: #fff;
}

input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: none;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
}

.qr-section {
  position: relative;
  margin-top: 20px;
}

#preview {
  width: 100%;
  max-height: 280px;
  border-radius: 15px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.4);
}

.camera-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 5px;
}

.camera-buttons button,
.upload-btn {
  flex: 1;
  min-width: 30%;
  border: none;
  border-radius: 12px;
  padding: 10px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s ease;
}

/* ألوان الأزرار */
#startCam {
  background: linear-gradient(45deg, #38b000, #70e000);
  color: #fff;
}
#startCam:hover {
  background: linear-gradient(45deg, #2b9348, #55a630);
}

#stopCam {
  background: linear-gradient(45deg, #d00000, #e85d04);
  color: #fff;
}
#stopCam:hover {
  background: linear-gradient(45deg, #9d0208, #dc2f02);
}

.upload-btn {
  background: linear-gradient(45deg, #0077b6, #00b4d8);
  color: #fff;
  text-align: center;
  display: inline-block;
}
.upload-btn:hover {
  background: linear-gradient(45deg, #023e8a, #0077b6);
}

.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 8px;
}

.actions button {
  flex: 1;
  border: none;
  border-radius: 15px;
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
  font-size: 15px;
  transition: 0.3s;
}

/* أزرار الحضور والانصراف */
.actions button:first-child {
  background: linear-gradient(45deg, #2d6a4f, #52b788);
  color: #fff;
}
.actions button:first-child:hover {
  background: linear-gradient(45deg, #1b4332, #40916c);
}

.actions button:last-child {
  background: linear-gradient(45deg, #ff8800, #ffb703);
  color: #fff;
}
.actions button:last-child:hover {
  background: linear-gradient(45deg, #ff7b00, #ff9500);
}

#message {
  margin-top: 15px;
  font-weight: bold;
  font-size: 15px;
}

footer {
  margin-top: 20px;
  color: #eee;
  font-size: 13px;
}
