@import url('https://fonts.googleapis.com/css2?family=Cinzel');

:root {
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #e1e4e8;
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --success-color: #16a34a;
    --success-bg: #dcfce7;
    --error-color: #dc2626;
    --error-bg: #fee2e2;
}



/* Base Layout */
body {
    font-family: 'Cinzel', serif;
    background-image: url('bg-volcano.png'), url('bg-stars.jpg');
    background-attachment: fixed, fixed;
    background-position: center bottom, center center;
    background-repeat: no-repeat, no-repeat;
  
    /* Layer 1 (stars): cover whole screen
       Layer 2 (volcano): 100% width, auto height */
    background-size: 100% auto, cover;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 100px 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a:link {
    color: #0000ff;
}

a:visited {
    color: #0088ff;
}

*.btn a {
    color: black;
}

a.btn {
    color: black;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  box-sizing: border-box;

  /* Slate/Stone Color Palette */
  background: linear-gradient(145deg, #2d3436, #1e272e);
  background-image: url('stone.png');
  color: #ffffff; /* Brightens text for dark stone background */

  /* Chiseled Border & Carved Shape */
  border-radius: 6px;
  border: 2px solid #3d4849;
  border-top-color: #576574; /* Light highlight on top edge */
  border-left-color: #576574; /* Light highlight on left edge */
  border-bottom-color: #101518; /* Dark shadow on bottom edge */
  border-right-color: #101518; /* Dark shadow on right edge */

  /* Layered Shadows for Depth & Inset Bevel */
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.15), /* Inner top highlight */
    inset 0 -2px 4px rgba(0, 0, 0, 0.6),       /* Inner depth shadow */
    0 10px 25px rgba(0, 0, 0, 0.5);            /* Heavy outer drop shadow */
}

.profile-card {
    /*background: var(--card-bg);*/
    background-image: url('stone2.png');
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 500px;
    padding: 32px;
}

/* Typography */
h1, h2 {
    margin-top: 0;
}

h1 {
    font-size: 1.5rem;
}

/* Fixed Elements & Menus */
table.menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    height: 100px;
    width: 100%;
}

table.menu td, td.menu {
    text-align: center;
    background-color: white;
    width: 14%;
}

.coinbox {
    width: 100px;
    height: 100px;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 9998;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    height: 80px;
}

input:disabled {
    background-color: #f3f4f6;
    color: var(--text-muted);
    cursor: not-allowed;
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Buttons */
button, .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

button:hover, .btn:hover {
    background-color: var(--primary-hover);
}

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

.btn-secondary { 
    background-color: #0000FF; 
}

.btn-danger { 
    background-color: var(--error-color); 
}

.btn-sm { 
    padding: 6px 12px; 
    font-size: 13px; 
}

/* Alerts & Badges */
.alert {
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.alert-success { 
    background-color: var(--success-bg); 
    color: var(--success-color); 
}

.alert-error { 
    background-color: var(--error-bg); 
    color: var(--error-color); 
}

.badge { 
    padding: 3px 8px; 
    border-radius: 12px; 
    font-weight: bold; 
    font-size: 11px; 
}

.badge-active { 
    background: var(--success-bg); 
    color: var(--success-color); 
}

.badge-expired { 
    background: var(--error-bg); 
    color: var(--error-color); 
}

/* Component Grids */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.stat-item { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
}

.stat-value { 
    display: block; 
    font-size: 1.1rem; 
    font-weight: 700; 
    margin-top: 2px; 
}

.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

.grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 15px; 
}

/* Content Cards */
.header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 15px; 
}

.card { 
    background: #fafafa;
    background-image: url('stone2.png');
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    padding: 20px; display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
  /* Slate/Stone Color Palette */
  /*background: linear-gradient(95deg, #2d3436, #1e272e);*/

  /* Chiseled Border & Carved Shape */
  border-radius: 6px;
  border: 2px solid #3d4849;
  border-top-color: #576574; /* Light highlight on top edge */
  border-left-color: #576574; /* Light highlight on left edge */
  border-bottom-color: #101518; /* Dark shadow on bottom edge */
  border-right-color: #101518; /* Dark shadow on right edge */

  /* Layered Shadows for Depth & Inset Bevel */
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.15), /* Inner top highlight */
    inset 0 -2px 4px rgba(0, 0, 0, 0.6),       /* Inner depth shadow */
    0 10px 25px rgba(0, 0, 0, 0.5);            /* Heavy outer drop shadow */
}

.info { 
    flex-grow: 1; 
    padding-right: 20px; 
}

.title { 
    font-size: 18px; 
    font-weight: bold; 
    color: white; 
    margin-bottom: 6px;
}

.desc { 
    color: white; 
    font-size: 14px; 
    margin-bottom: 12px; 
    line-height: 1.4;
}

.meta { 
    font-size: 12px; 
    color: white; 
    display: flex; 
    gap: 15px; 
}

.lessons-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 30px; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 10px;
}

.lesson-card { 
    /*background: #fafafa; */
    border: 1px solid #e2e8f0; 
    border-radius: 6px; 
    padding: 15px; 
    margin-bottom: 15px; 
    position: relative; 
    background-image: url('stone2.png');
}

.lesson-card .card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: bold; 
    margin-bottom: 10px; 
    cursor: pointer; 
}

.actions { 
    display: flex; 
    gap: 8px; 
    flex-shrink: 0; 
}

.empty-state {
    text-align: center; 
    padding: 40px; 
    color: white; 
}