:root {
  --primary: #006400; /* Deep green military theme */
  --secondary: #004d00;
  --success: #4CAF50;
  --warning: #FFC107;
  --danger: #F44336;
  --dark: #263238;
  --light: #f5f5f5;
  --text: #333;
  --white: #fff;
  --admin-primary: #1976D2;
  --admin-secondary: #0D47A1;
}

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

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

.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  color: white;
  padding: 15px 20px;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 8px;
}

.header .logo-text {
  display: flex;
  align-items: center;
  font-weight: bold;
}

.header .logo-text img {
  width: 40px;
  margin-right: 10px;
}

.header .actions {
  display: flex;
  gap: 15px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

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

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

.btn-warning {
  background: var(--warning);
  color: black;
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

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

/* Form Elements */
.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.file-upload {
  display: flex;
  gap: 5px;
  align-items: center;
}

.file-upload input[type="file"] {
  display: none;
}

.file-upload label {
  padding: 10px;
  background: var(--primary);
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.file-upload span {
  padding: 10px;
  background: #eee;
  border: 1px solid #ddd;
  border-radius: 5px;
  flex-grow: 1;
}

/* Containers */
.login-container, .register-container {
  max-width: 500px;
  margin: 50px auto;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.login-container h2, .register-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary);
}

/* Messages */
.error-message {
  background: var(--danger);
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
}

.success-message {
  background: var(--success);
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
}

/* Pages */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Footer */
.footer {
  margin-top: auto;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 10px;
  }
  
  .login-container, .register-container {
    margin: 20px;
    padding: 20px;
  }
}