/* ===========================================
   GLOBAL THEME FILE - finance_app (SOLID DARK)
   -------------------------------------------
   - Institutional-grade dark mode
   - Deep blacks, muted tones, high contrast
   =========================================== */

/* ============= ROOT VARIABLES ============= */
:root {
  --primary: #D6A64F;           /* muted gold for elegance */
  --primary-dark: #B5882D;
  --primary-light: #F1C56B;

  --accent: #C084FC;            /* violet accent for premium feel */
  --danger: #FF4E4E;
  --success: #16C784;
  --warning: #EAB308;

  --text-dark: #F3F4F6;
  --text-light: #9CA3AF;
  --text-black: #131414;

  --bg-light: #080808;          /* near-black background */
  --bg-gradient: linear-gradient(135deg, #0A0A0A, #1A1A1A);

  --radius: 18px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  --transition: all 0.3s ease;
}



/* ============= BASE STYLES ============= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg-gradient);
  color: var(--text-dark);
  -webkit-tap-highlight-color: transparent;
}

/* ============= LAYOUT ============= */
.container {
  width: 90%;
  max-width: 400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  animation: fadeIn 0.5s ease-in-out;
  width: 100%;
}

/* ============= TYPOGRAPHY ============= */
h1, h2, h3, h4 {
  color: var(--text-dark);
  text-align: center;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

p, label, span {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ============= FORMS ============= */
.input-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  background: #111214;            /* dark matte input background */
  border: 1px solid #1E1E1E;
  color: var(--text-dark);
  border-radius: 12px;
  font-size: 16px;
  transition: var(--transition);
}

input::placeholder {
  color: var(--text-muted);
}

input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-dark);
  outline: none;
}

/* ============= BUTTONS ============= */
.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #E9EAEC;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-danger {
  background: var(--danger);
  color: #E9EAEC;
}

.btn-danger:hover {
  opacity: 0.85;
}

.btn-success {
  background: var(--success);
  color: #E9EAEC;
}

.btn-success:hover {
  opacity: 0.85;
}

/* ============= ALERTS & MESSAGES ============= */
.message {
  text-align: center;
  font-size: 14px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
}

.message.error {
  background: rgba(138, 28, 28, 0.15);
  color: var(--danger);
}

.message.success {
  background: rgba(30, 98, 71, 0.15);
  color: var(--success);
}

/* ============= LINKS ============= */
.text {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.text a:hover {
  text-decoration: underline;
}

/* ============= UTILITIES ============= */
.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none;
}

/* ============= ANIMATIONS ============= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============= RESPONSIVE ============= */
@media (max-width: 480px) {
  .card {
    padding: 25px 20px;
  }

  h2 {
    font-size: 1.4rem;
  }

  input, select {
    font-size: 15px;
  }

  .btn {
    font-size: 15px;
  }
}
