/* Policy System Styles - Extends Inside 75 Films Design */

/* CSS Custom Properties - Matching Main Site */
:root {
  --bg: #000;
  --text: #fff;
  --accent: #0074d9;
  --secondary-bg: #111;
  --border-color: #222;
}

/* Base Reset & Typography */
* {
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Layout */
header {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  padding: 1rem 0;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  margin-bottom: 3rem;
}

footer {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #555;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  text-shadow: 0 2px 8px #000, 0 0 2px #0074d9;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

/* Navigation */
nav {
  text-align: center;
}

nav a {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--text);
  text-shadow: 0 2px 8px #000, 0 0 2px #0074d9;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  margin: 0 0.5rem;
  transition: all 0.15s;
  border: 1px solid transparent;
}

nav a:hover {
  background: rgba(0,116,217,.15);
  color: var(--accent);
  border-color: var(--accent);
}

.back-link {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
}

/* Policy Content */
.policy-container {
  background: var(--secondary-bg);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  margin-bottom: 2rem;
}

.policy-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.policy-card {
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.policy-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,116,217,0.2);
}

.policy-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.policy-card p {
  margin-bottom: 1rem;
  color: #ccc;
}

.policy-link {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.policy-link:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

/* Policy Content Formatting */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content p {
  margin-bottom: 1rem;
}

.policy-content ul, .policy-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

.policy-content strong {
  color: var(--accent);
}

.policy-content blockquote {
  background: var(--secondary-bg);
  border-left: 4px solid var(--accent);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

/* Staff Portal Styles */
.login-form {
  max-width: 400px;
  margin: 2rem auto;
  background: var(--secondary-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,116,217,0.2);
}

.btn-primary {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #0056b3;
}

/* Policy Tracking */
.policy-item {
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.policy-item.completed {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
}

.policy-item.in-progress {
  border-color: #ffc107;
  background: rgba(255, 193, 7, 0.1);
}

.policy-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-completed {
  background: #28a745;
  color: white;
}

.status-pending {
  background: #6c757d;
  color: white;
}

.status-in-progress {
  background: #ffc107;
  color: black;
}

/* Policy Acceptance */
.acceptance-form {
  background: var(--secondary-bg);
  border-radius: 6px;
  padding: 1.5rem;
  margin-top: 1rem;
  border: 1px solid var(--border-color);
}

.acceptance-checkbox {
  margin: 1rem 0;
}

.acceptance-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.acceptance-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  transform: scale(1.2);
}

.signature-pad {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: white;
  margin: 1rem 0;
}

.signature-controls {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-secondary {
  background: var(--secondary-bg);
  color: var(--text);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
}

/* Admin Dashboard */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--secondary-bg);
  padding: 1.5rem;
  border-radius: 6px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: #ccc;
}

.user-list {
  background: var(--secondary-bg);
  border-radius: 6px;
  overflow: hidden;
}

.user-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-item:last-child {
  border-bottom: none;
}

.user-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.user-info p {
  margin: 0;
  font-size: 0.875rem;
  color: #ccc;
}

.completion-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.completion-100 { background: #28a745; color: white; }
.completion-75 { background: #ffc107; color: black; }
.completion-50 { background: #fd7e14; color: white; }
.completion-25 { background: #dc3545; color: white; }
.completion-0 { background: #6c757d; color: white; }

/* Responsive Design */
@media (max-width: 768px) {
  main {
    padding: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .policy-list {
    grid-template-columns: 1fr;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .signature-controls {
    flex-direction: column;
  }
  
  .user-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Print Styles */
@media print {
  header, .back-link, .signature-controls {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .policy-container {
    background: white;
    box-shadow: none;
  }
}