/* css/style.css - ConnectClick Windows 95 + Modern Social Design System */

:root {
  --win-grey: #C0C0C0;
  --win-light: #DFDFDF;
  --win-dark: #808080;
  --win-darker: #404040;
  --win-navy: #000080;
  --win-navy-grad: #1084D0;
  --win-white: #FFFFFF;
  --win-black: #000000;
  --win-teal: #008080;
  --win-success: #006400;
  --win-danger: #A80000;
  --win-warn: #8A5A00;

  --font-system: "MS Sans Serif", "Tahoma", "Segoe UI", Arial, sans-serif;
  --font-mono: "Courier New", Courier, monospace;

  --border-outset: 2px solid;
  --border-outset-colors: var(--win-white) var(--win-darker) var(--win-darker) var(--win-white);
  --border-inset-colors: var(--win-dark) var(--win-white) var(--win-white) var(--win-dark);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-system);
  font-size: 14px;
  line-height: 1.45;
  color: var(--win-black);
  background-color: #D4D0C8;
  background-image: radial-gradient(#B8B4AC 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-font-smoothing: antialiased;
}

/* Classic 3D Window Panel */
.win-window {
  background-color: var(--win-grey);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-darker);
  border-bottom: 2px solid var(--win-darker);
  box-shadow: 1px 1px 0 var(--win-black), 4px 4px 12px rgba(0, 0, 0, 0.18);
}

/* Classic Navy Title Bar */
.win-titlebar {
  background: linear-gradient(90deg, var(--win-navy) 0%, var(--win-navy-grad) 100%);
  color: var(--win-white);
  padding: 5px 8px;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.win-titlebar-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.win-titlebar-controls {
  display: flex;
  gap: 3px;
}

.win-title-btn {
  width: 18px;
  height: 16px;
  background: var(--win-grey);
  color: var(--win-black);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-darker);
  border-bottom: 1px solid var(--win-darker);
  font-size: 10px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.win-title-btn:active {
  border-top: 1px solid var(--win-darker);
  border-left: 1px solid var(--win-darker);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
}

/* Classic 3D Raised Button */
.win-btn {
  font-family: var(--font-system);
  font-size: 13px;
  font-weight: bold;
  color: var(--win-black);
  background-color: var(--win-grey);
  padding: 7px 14px;
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-darker);
  border-bottom: 2px solid var(--win-darker);
  box-shadow: inset -1px -1px 0 var(--win-dark), inset 1px 1px 0 var(--win-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  transition: background-color 0.12s ease, transform 0.05s ease;
}

.win-btn:hover:not(:disabled) {
  background-color: #CACACA;
}

.win-btn:active:not(:disabled) {
  border-top: 2px solid var(--win-darker);
  border-left: 2px solid var(--win-darker);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  box-shadow: inset 1px 1px 0 var(--win-dark);
  padding: 8px 13px 6px 15px;
}

.win-btn:focus-visible {
  outline: 1px dotted var(--win-black);
  outline-offset: -4px;
}

.win-btn:disabled {
  color: var(--win-dark);
  text-shadow: 1px 1px 0 var(--win-white);
  cursor: not-allowed;
}

.win-btn-primary {
  background-color: var(--win-navy);
  color: var(--win-white);
  border-top: 2px solid #4B6CB7;
  border-left: 2px solid #4B6CB7;
  border-right: 2px solid #000033;
  border-bottom: 2px solid #000033;
  box-shadow: none;
}

.win-btn-primary:hover:not(:disabled) {
  background-color: #0000A8;
}

.win-btn-primary:active:not(:disabled) {
  border-top: 2px solid #000033;
  border-left: 2px solid #000033;
  border-right: 2px solid #4B6CB7;
  border-bottom: 2px solid #4B6CB7;
}

/* Classic Inset Field */
.win-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.win-label {
  font-size: 13px;
  font-weight: bold;
  color: var(--win-black);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.win-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.win-input {
  width: 100%;
  font-family: var(--font-system);
  font-size: 14px;
  color: var(--win-black);
  background-color: var(--win-white);
  padding: 7px 10px;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  box-shadow: inset 1px 1px 0 var(--win-darker);
  outline: none;
  transition: background-color 0.15s ease;
}

.win-input:focus {
  background-color: #FFFFF5;
}

/* Classic Inset Status Bar */
.win-statusbar {
  background-color: var(--win-grey);
  border-top: 1px solid var(--win-dark);
  padding: 4px 8px;
  font-size: 12px;
  color: var(--win-darker);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.win-status-pane {
  border-top: 1px solid var(--win-dark);
  border-left: 1px solid var(--win-dark);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
  padding: 2px 6px;
  flex: 1;
}

/* Alert Banners */
.win-alert {
  padding: 8px 10px;
  margin-bottom: 14px;
  font-size: 13px;
  border-top: 2px solid var(--win-dark);
  border-left: 2px solid var(--win-dark);
  border-right: 2px solid var(--win-white);
  border-bottom: 2px solid var(--win-white);
  display: none;
  align-items: flex-start;
  gap: 8px;
}

.win-alert.show {
  display: flex;
}

.win-alert-error {
  background-color: #FFEBEB;
  color: var(--win-danger);
}

.win-alert-success {
  background-color: #E8F8E8;
  color: var(--win-success);
}

/* Modal Overlay */
.win-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.win-modal-backdrop.open {
  display: flex;
}

.win-modal {
  width: 100%;
  max-width: 420px;
  animation: popIn 0.15s ease-out;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
