@tailwind base;
@tailwind components;
@tailwind utilities;

/* TRUE Basecamp color scheme - warmer and friendlier */
:root {
  --bc-bg: #f9f6f1;
  --bc-cream: #ffffff;
  --bc-green: #5dbb63;
  --bc-green-hover: #4a9950;
  --bc-text: #1d1d1d;
  --bc-text-muted: #6d6d6d;
  --bc-border: #e6dfd5;
  --bc-shadow: rgba(0, 0, 0, 0.04);
}

@layer base {
  body {
    background-color: var(--bc-bg) !important;
    color: var(--bc-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
}

@layer components {
  /* Basecamp green buttons */
  .btn-primary {
    @apply inline-flex items-center justify-center font-semibold text-white;
    padding: 12px 24px;
    background-color: var(--bc-green);
    border-radius: 8px;
    transition: background-color 0.15s ease;
    white-space: nowrap;
  }

  .btn-primary:hover {
    background-color: var(--bc-green-hover);
  }

  /* Secondary button - outlined */
  .btn-secondary {
    @apply inline-flex items-center justify-center font-semibold;
    padding: 12px 24px;
    background-color: var(--bc-cream);
    color: var(--bc-text);
    border: 1px solid var(--bc-border);
    border-radius: 8px;
    transition: all 0.15s ease;
    white-space: nowrap;
  }

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

  /* Clean white cards */
  .card-basecamp {
    background-color: var(--bc-cream);
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--bc-shadow);
    padding: 2rem;
    border: 1px solid var(--bc-border);
  }

  /* Form inputs */
  .input-basecamp {
    @apply w-full py-3 text-base;
    padding-left: 1rem;
    padding-right: 1rem;
    background-color: var(--bc-cream);
    border: 1px solid var(--bc-border);
    border-radius: 8px;
    color: var(--bc-text);
    transition: border-color 0.15s ease;
  }

  .input-basecamp:focus {
    outline: none;
    border-color: var(--bc-green);
    box-shadow: 0 0 0 3px rgba(93, 187, 99, 0.1);
  }

  .input-basecamp::placeholder {
    color: var(--bc-text-muted);
  }

  /* Labels */
  .label-basecamp {
    @apply block font-semibold mb-2;
    color: var(--bc-text);
  }

  /* Alerts - simple and clean */
  .alert-success {
    @apply p-4 rounded-md mb-4;
    background-color: #e8f4e8;
    color: var(--bc-text);
    border-left: 4px solid var(--bc-green);
  }

  .alert-error {
    @apply p-4 rounded-md mb-4;
    background-color: #fee;
    color: var(--bc-text);
    border-left: 4px solid #c33;
  }

  /* Navigation */
  .nav-basecamp {
    background-color: var(--bc-cream);
    border-bottom: 1px solid var(--bc-border);
    box-shadow: 0 1px 2px var(--bc-shadow);
  }

  .nav-link {
    @apply px-4 py-2 rounded-md font-medium transition-colors;
    color: var(--bc-text-muted);
  }

  .nav-link:hover {
    color: var(--bc-green);
    background-color: rgba(29, 111, 66, 0.05);
  }

  .nav-link.active {
    color: var(--bc-green);
    background-color: rgba(93, 187, 99, 0.12);
  }
}
/* Inter font CSS - placeholder for tests */
@import url('https://rsms.me/inter/inter.css');
@font-face {
  font-family: 'Journal';
  src: url(/journal.eot);
  src: url(/journal.eot?#iefix) format('embedded-opentype'),
       url(/journal.woff) format('woff'),
       url(/journal.ttf) format('truetype'),
       url(/journal.svg#JournalRegular) format('svg');
  font-weight: normal;
  font-style: normal;
}

.sigPad {
  margin: 0;
  padding: 0;
  width: 800px;
}

.sigPad label {
  display: block;
  margin: 0 0 0.515em;
  padding: 0;

  color: #000;
  font: italic normal 1em/1.375 Georgia,Times,serif;
}

.sigPad label.error {
  color: #f33;
}

.sigPad input {
  margin: 0;
  padding: 0.2em 0;
  width: 798px;

  border: 1px solid #666;

  font-size: 1em;
}

.sigPad input.error {
  border-color: #f33;
}

.sigPad button {
  margin: 1em 0 0 0;
  padding: 0.6em 0.6em 0.7em;

  background-color: #ccc;
  border: 0;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  border-radius: 8px;

  cursor: pointer;

  color: #555;
  font: bold 1em/1.375 sans-serif;
  text-align: left;
}

.sigPad button:hover {
  background-color: #333;

  color: #fff;
}

.sig {
  display: none;
}

.sigNav {
  display: none;
  height: 2.25em;
  margin: 0;
  padding: 0;
  position: relative;

  list-style-type: none;
}

.sigNav li {
  display: inline;
  float: left;
  margin: 0;
  padding: 0;
}

.sigNav a,
.sigNav a:link,
.sigNav a:visited {
  display: block;
  margin: 0;
  padding: 0 0.6em;

  border: 0;

  color: #333;
  font-weight: bold;
  line-height: 2.25em;
  text-decoration: underline;
}

.sigNav a.current,
.sigNav a.current:link,
.sigNav a.current:visited {
  background-color: #666;
  -moz-border-radius-topleft: 8px;
  -moz-border-radius-topright: 8px;
  -webkit-border-top-left-radius: 8px;
  -webkit-border-top-right-radius: 8px;
  border-radius: 8px 8px 0 0;

  color: #fff;
  text-decoration: none;
}

.sigNav .typeIt a.current,
.sigNav .typeIt a.current:link,
.sigNav .typeIt a.current:visited {
  background-color: #ccc;

  color: #555;
}

.sigNav .clearButton {
  bottom: 0.2em;
  display: none;
  position: absolute;
  right: 0;

  font-size: 0.75em;
  line-height: 1.375;
}

.sigWrapper {
  clear: both;
  height: 222px;

  border: 1px solid #ccc;

  width: 820px;
  margin-left: -10px;
}

.sigWrapper.current {
  border-color: #666;
}

.signed .sigWrapper {
  border: 0;
}

.pad {
  position: relative;

  /**
   * For cross browser compatibility, this should be an absolute URL
   * In IE the cursor is relative to the HTML document
   * In all other browsers the cursor is relative to the CSS file
   *
   * http://www.useragentman.com/blog/2011/12/21/cross-browser-css-cursor-images-in-depth/
   */
  cursor: url(/assets/pen-6993f49d76f5e4a9b9d8c923b737cc9c32e7cc32e3960493ca2c227c3a6e33c7.cur), crosshair;
  /**
   * IE will ignore this line because of the hotspot position
   * Unfortunately we need this twice, because some browsers ignore the hotspot inside the .cur
   */
  cursor: url(/assets/pen-6993f49d76f5e4a9b9d8c923b737cc9c32e7cc32e3960493ca2c227c3a6e33c7.cur) 16 16, crosshair;

  -ms-touch-action: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;

  margin-left: 9px;
}

.typed {
  height: 220px;
  margin: 0;
  padding: 0 5px;
  position: absolute;
  z-index: 90;

  cursor: default;

  color: #145394;
  font: normal 1.875em/50px "Journal",Georgia,Times,serif;
}

.typeItDesc,
.drawItDesc {
  display: none;
  margin: 0.75em 0 0.515em;
  padding: 0.515em 0 0;

  border-top: 3px solid #ccc;

  color: #000;
  font: italic normal 1em/1.375 Georgia,Times,serif;
}

p.error {
  display: block;
  margin: 0.5em 0;
  padding: 0.4em;

  background-color: #f33;

  color: #fff;
  font-weight: bold;
}

#padContainer {
  width: 800px;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
