:root {
  --primary-color: #ff7b20;
  --secondary-color: #007fab;
  --background-color: #fcfcfc;
  --text-color: #1a1534;
  --hover-color: #f4b057;
  --card-background: white;
  --dark-background: #545454;
  --dark-border: #6e6e6e;
  --dark-hover-color: var(--hover-color);
  --transition-speed: 0.3s;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --gradient-background: linear-gradient(135deg, #ff7b20 0%, #ff9e3e 100%);
}

body {
  background-color: var(--background-color);
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  transition: background-color var(--transition-speed);
}

/* Link Styles */
a {
  color: var(--text-color) !important;
  transition: color var(--transition-speed), border-color var(--transition-speed);
}

.dark-theme a {
  color: white !important;
}

h3 {
	text-align: center !important;
}

a:hover, a:active, a:focus {
  text-decoration: none;
  color: var(--secondary-color) !important;
}

i.roostermodule_block-icon.fal {
	font-size: 50px;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
}

/* Button Styles */
.btn-roostermodule {
  color: white;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  box-shadow: var(--box-shadow);
  transition: background-color var(--transition-speed), color var(--transition-speed), box-shadow var(--transition-speed);
}

.btn-roostermodule:hover, .btn-roostermodule:active, .btn-roostermodule:focus {
  color: var(--primary-color);
  background: white;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Card Styles */
.roostermodule_block-wrapper .card-body {
  background-color: var(--card-background);
  border-radius: 0.9rem;
  box-shadow: var(--box-shadow);
  transition: background-color var(--transition-speed), border var(--transition-speed), box-shadow var(--transition-speed);
}

.roostermodule_block-wrapper .card-body:hover {
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.dark-theme .card-body {
  background-color: var(--dark-background);
  border: 1px solid var(--dark-border);
}

.dark-theme a {
  color: #fff;
}

.dark-theme a:hover {
  border-color: var(--dark-hover-color);
}

.dark-theme a.roostermodule_block:hover > *:last-child, .dark-theme a.roostermodule_block:active > *:last-child, .dark-theme a.roostermodule_block:focus > *:last-child {
  color: var(--dark-hover-color);
}

/* Transition for All Links */
a.roostermodule_block {
  border-color: var(--card-background);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

a.roostermodule_block:hover, a.roostermodule_block:active, a.roostermodule_block:focus {
  border-color: var(--secondary-color);
  box-shadow: var(--box-shadow);
}

/* Updated Typography */
.roostermodule_page-title {
  line-height: 1.2;
  font-size: 2rem;
  margin: 1rem 0;
  padding-left: 0.5rem;
  background: var(--gradient-background);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Flexbox Layout */
.roostermodule-profile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.roostermodule-profile-topLeft {
  display: flex;
  align-items: center;
}

.roostermodule-profile-item {
  display: flex;
  align-items: center;
  line-height: 1.5;
  height: auto;
}

/* Updated Alerts */
.alert {
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.alert-info {
  background-color: #e5f1fa;
  color: #1a1534;
}

.alert-info:hover {
  background-color: #d5eaf7;
}

/* Other Minor Updates */
.roostermodule_evt-title h2 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

.roostermodule_evt-genre {
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: white;
  padding: 0.5rem;
  margin-left: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: nowrap;
  border-radius: 0.25rem;
  transition: background-color var(--transition-speed), color var(--transition-speed), box-shadow var(--transition-speed);
  box-shadow: var(--box-shadow);
}

.roostermodule_evt-genre:hover, .roostermodule-tag_cb:checked + label {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.roostermodule_update-number {
  display: inline-block;
  width: 25px;
  height: 21px;
  border-radius: 50%;
  background: white;
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 21px;
  text-align: center;
  margin-top: 0.25rem;
  margin-left: 0.5rem;
  transition: background-color var(--transition-speed), color var(--transition-speed), box-shadow var(--transition-speed);
  box-shadow: var(--box-shadow);
}

.roostermodule_update-number-big {
  display: inline-block;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #f2f9ff;
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 31px;
  text-align: center;
  margin-top: 0.25rem;
  margin-left: 0.5rem;
  transition: background-color var(--transition-speed), color var(--transition-speed), box-shadow var(--transition-speed);
  box-shadow: var(--box-shadow);
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .roostermodule_block-wrapper {
    height: 450px;
  }

  .row + .roostermodule_block-wrapper {
    height: calc(100vh - 107px);
    margin-top: 0;
  }

  .roostermodule_block-wrapper > .col-md-12 {
    height: 100%;
  }

  .roostermodule_block-wrapper > .col-md-12 > .cx_card-row {
    height: 100%;
    align-content: stretch;
  }

  .roostermodule_block-dashboard {
    height: calc(33.333% - 15px);
  }
  
  i.roostermodule_block-icon.fal {
    margin-top: 20px;
}
}
