/* === CRYPTO PORTFOLIO PROFESSIONAL CSS STARTER === */

/* --- Root Variables --- */
:root {
  --primary: #1a73e8;
  --primary-dark: #174ea6;
  --accent: #34a853;
  --accent-dark: #218838;
  --background: #f7fafc;
  --surface: #fff;
  --text: #1a202c;
  --text-light: #65748b;
  --border: #e2e8f0;
  --danger: #e53935;
  --success: #34a853;

  --radius: 10px;
  --shadow: 0 4px 24px rgba(30,34,90,0.08);
  --transition: 0.18s cubic-bezier(.4,0,.2,1);
}

/* --- Base Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}



/* Ensure the card itself hides any overflow */
.card {
  overflow: hidden;
}

/* styles.css */

/* Logo wrapper: smaller than the card and centered */
.logo-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 320px;      /* adjust this value to taste */
  height: 240px;
  margin: 0 auto 16px;   /* center and give some bottom space */
  background: #fff;
  padding: 8px 0;        /* vertical padding only */
  box-sizing: border-box;
}

/* Ensure the image fills the wrapper */
.logo-wrapper img {
  /* keep your max-width/padding/etc */
  display: block;
  width: 100%;
  height: auto;
/* crop 130px from top and bottom */
  clip-path: inset(130px 0 130px 0);
  -webkit-clip-path: inset(130px 0 130px 0);

  /* shift the image up by 130px so the cropped window moves up */
  transform: translateY(-130px);
}


a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1em;
  color: var(--text-light);
}

/* --- Container / Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* move hero 20px closer to navbar */
.container.hero-spaced {
  margin-top: 28px;  /* originally 48px, now 20px less */
}

/* you can give your hero container that class */


/* --- Navigation --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 32px;
  box-shadow: var(--shadow);
}
nav .brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: .03em;
}

nav .brand a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .03em;
  transition: color var(--transition);
  /* Most important: make it clickable */
  pointer-events: auto;
  display: inline-block;
}
nav .brand a:hover {
  color: var(--primary);
  
}


nav .nav-links {
  display: flex;
  gap: 22px;
}
nav .nav-links a {
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
}
nav .nav-links a.btn {
  padding: 9px 18px;
  font-size: 1em;
  margin-left: 10px;
  border-radius: var(--radius);
}
nav .nav-links a:hover:not(.btn) {
  color: var(--primary);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30,34,90,0.06);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  text-align: center;
  text-decoration: none;   /* Removes underline from <a> */
  line-height: 1.2;        /* Makes vertical padding consistent */
}
.btn:hover,
.btn:focus {
  background: var(--primary-dark);
  color: #fff;
}
.btn--accent {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  transition: background var(--transition), color var(--transition);
}
.btn--accent:hover,
.btn--accent:focus {
  background: var(--accent-dark);
  color: #fff;
}
.btn--danger {
  background: var(--danger);
}

.btn, .btn:visited {
    color: #fff;
}


/* --- Card --- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 28px 24px;
  margin-top: 32px;
  margin-bottom: 32px;
  transition: box-shadow var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(30,34,90,0.13);
}

.card form input,
.card form select,
.card form textarea {
    max-width: 100%;
    width: 100%;
    font-size: 1em;
}

.card form .form-group {
    margin-bottom: 1.2em;
}

.card form label {
    font-weight: 600;
    margin-bottom: .45em;
    display: block;
}


/* --- Forms --- */
form {
  margin-bottom: 2em;
}
label {
  display: block;
  margin-bottom: .45em;
  font-weight: 600;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 1em;
  margin-bottom: 1.2em;
  outline: none;
  transition: border var(--transition), box-shadow var(--transition);
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(26,115,232,0.06);
}
input:disabled {
  background: #f1f3f7;
}

/* --- Tables --- */
.table-responsive {
  overflow-x: auto;
}

.main-table th, .main-table td {
    text-align: center !important;
    vertical-align: middle;
}


table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  margin-bottom: 2em;
}
th, td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

th.date, td.date {
    white-space: nowrap;
    min-width: 105px; /* Ensures enough width for 'YYYY-MM-DD' */
}

th {
  background: #f1f5f9;
  color: var(--text);
  font-size: 1em;
  font-weight: 700;
}
tr:last-child td {
  border-bottom: none;
}

/* --- Alerts --- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 1.4em;
  font-weight: 500;
  box-shadow: 0 1px 8px rgba(30,34,90,0.06);
}
.alert--success {
  background: #e6f5ea;
  color: var(--success);
}
.alert--error {
  background: #fde8e8;
  color: var(--danger);
}

/* --- Misc --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.m-1 { margin: 1em; }
.p-2 { padding: 2em; }

/* --- Responsive --- */
@media (max-width: 700px) {
  .container { padding: 18px 6px; }
  nav { flex-direction: column; gap: 10px; padding: 16px 10px; }
  .card { padding: 16px 8px; }
  th, td { padding: 8px 6px; font-size: .97em; }
}

/* === END OF CSS STARTER === */
