/* Main styles for secure file explorer */

:root {
  --color-bg: #2C2C2C;
  --color-surface: #3C3C3C;
  --color-text: #FFFFFF;
  --color-text-light: #CCCCCC;
  --color-border: #1a1a1a;
  --color-primary: #0080FF;
  --color-primary-hover: #005AFF;
  --color-error: #FF0000;
  --color-error-light: #330000;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --radius: 0px;
  --transition: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: 'MS Sans Serif', 'MS Shell Dlg', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
  background-color: #2C2C2C;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

ol,
ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Buttons */
button {
  font-family: 'MS Sans Serif', 'MS Shell Dlg', Arial, sans-serif;
  font-size: 1rem;
  border: 2px solid;
  border-color: #DFDFDF #808080 #808080 #DFDFDF;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: none;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #C0C0C0;
  color: #000000;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  color: #808080;
}

button:active {
  border-color: #808080 #DFDFDF #DFDFDF #808080;
}

.btn-primary {
  background-color: #0080FF;
  color: white;
  border-color: #DFDFDF #000000 #000000 #DFDFDF;
}

.btn-primary:hover:not(:disabled) {
  background-color: #005AFF;
}

.btn-primary:active {
  border-color: #000000 #DFDFDF #DFDFDF #000000;
}

.btn-secondary {
  background-color: #C0C0C0;
  color: #000000;
  border-color: #DFDFDF #808080 #808080 #DFDFDF;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #D0D0D0;
}

.btn-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* Input fields */
input[type='text'],
input[type='password'],
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 2px solid;
  border-color: #808080 #DFDFDF #DFDFDF #808080;
  font-family: 'MS Sans Serif', 'MS Shell Dlg', Arial, sans-serif;
  font-size: 1rem;
  color: #000000;
  background-color: #FFFFFF;
  opacity: 1;
  transition: none;
  resize: none;
}

input[type='text']:focus,
input[type='password']:focus,
textarea:focus {
  outline: none;
  border-color: #808080 #DFDFDF #DFDFDF #808080;
  box-shadow: none;
}

/* Checkboxes */
input[type='checkbox'] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--color-primary);
}

/* Utility classes */
.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  background-color: #C0C0C0;
  border-bottom: 2px solid;
  border-color: #DFDFDF #000000 #000000 #DFDFDF;
  padding: 1.5rem;
  text-align: center;
  box-shadow: none;
  color: #000000;
}

.header h1 {
  margin-bottom: 0.5rem;
  color: #000000;
}

.header p {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: #000000;
}

/* Error and message display */
.error-display {
  background-color: #C0C0C0;
  color: #FF0000;
  padding: 0.75rem;
  border: 2px solid;
  border-color: #DFDFDF #000000 #000000 #DFDFDF;
  margin-bottom: 1rem;
  font-weight: 500;
  min-height: 1.5rem;
  display: flex;
  align-items: center;
}

.error-display.hidden {
  display: none;
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
}

/* SVG icons */
svg {
  width: 100%;
  height: 100%;
  color: inherit;
}

/* Responsive design */
@media (max-width: 768px) {
  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  .container {
    padding: 1rem;
  }

  .header {
    padding: 1.5rem 1rem;
  }

  button {
    width: 100%;
  }
}

/* Print styles */
@media print {
  body,
  .header,
  button,
  .error-display {
    display: none;
  }
}
