/* 
 * modern_virtuoso.css
 * Modern styling enhancement for Virtuoso Conductor
 * This file extends the existing yacutia_style.css
 */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #2980b9;
  --accent-color: #3498db;
  --light-accent: #edf2f7;
  --light-gray: #ecf0f1;
  --gray: #95a5a6;
  --dark-gray: #7f8c8d;
  --border-color: #ddd;
  --success: #2ecc71;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;
  --text-color: #333;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --transition: all 0.3s ease;
}

/* Base styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: #f5f7fa;
  line-height: 1.6;
}

/* Header styles */
div.heading {
  background-color: var(--primary-color);
  height: 60px;
  background-image: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

div.heading_left {
  display: flex;
  align-items: center;
}

div.heading_right {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--light-gray);
  font-size: 0.9rem;
  padding-top: 0;
}

div.heading_right a {
  color: var(--light-gray);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

div.heading_right a:hover {
  background-color: rgba(255,255,255,0.1);
  color: var(--white);
}

/* Container layout */
div.container {
  margin-top: 60px;
  min-height: calc(100vh - 60px);
  width: 100%;
}

/* Sidebar styles */
div.left {
  background-color: var(--white);
  width: 220px;
  position: fixed;
  height: calc(100vh - 60px);
  padding-bottom: 0;
  overflow-y: auto;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  z-index: 900;
}

div.content {
  margin-left: 220px;
  padding: 1.5rem;
}

/* Menu styles */
ul.left_toolbox, ul.left_nav, ul.left_id {
  width: auto;
  padding: 0.5rem 0;
  margin: 0;
  border: none;
  background-image: none;
}

ul.left_toolbox li, ul.left_nav li {
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-color);
  font-size: 0.9rem;
  margin: 0;
}

ul.left_toolbox li:hover, ul.left_nav li:hover {
  background-color: var(--light-accent);
}

ul.left_toolbox li img, ul.left_nav li img {
  margin-right: 0;
}

ul.left_toolbox li a, ul.left_nav li a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

ul.left_id {
  background-color: var(--light-accent);
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  color: var(--dark-gray);
  font-size: 0.75rem;
}

ul.left_id li {
  margin-bottom: 3px;
}

/* Navigation bar */
div.nav_separator1 {
  background-color: transparent;
  height: auto;
  margin-bottom: 1.5rem;
}

ul.nav_bar1 {
  display: flex;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  line-height: normal;
}

ul.nav_bar1 li {
  float: none;
}

ul.nav_bar1 li a {
  background: none;
  background-image: none;
  padding: 0.9rem 1.2rem;
  border: none;
  color: var(--dark-gray);
  font-weight: normal;
  transition: var(--transition);
  font-size: 0.9rem;
}

ul.nav_bar1 li a:hover {
  background: var(--light-accent);
  background-image: none;
  color: var(--secondary-color);
}

ul.nav_bar1 a.sel:link, ul.nav_bar1 a.sel:visited {
  background: var(--light-accent);
  background-image: none;
  color: var(--secondary-color);
  font-weight: 500;
}

/* Page title */
h1.page_title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 1.5rem;
  padding: 0;
  width: auto;
  float: none;
}

.subpage_header_area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Tab styles */
div.page_tab, div.page_tab_selected {
  padding: 0.7rem 1.5rem;
  background-color: #f8f9fa;
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-right: 5px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  display: inline-block;
}

div.page_tab:hover {
  background-color: var(--light-accent);
}

div.page_tab_selected {
  background-color: var(--white);
  font-weight: 500;
  position: relative;
  z-index: 1;
  border-top: 3px solid var(--secondary-color);
}

div.page_tab a, div.page_tab_selected a {
  color: var(--text-color);
  text-decoration: none;
}

div.tab_page_new {
  background-color: var(--white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-top: none;
}

/* Scroll area */
div.scroll_area {
  max-height: 600px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--white);
  height: auto;
  margin-right: 0;
}

/* Table styles */
table.listing {
  width: 100%;
  border-collapse: collapse;
}

table.listing th {
  position: sticky;
  top: 0;
  background-color: var(--light-accent);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--primary-color);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

table.listing th.checkbox {
  width: 50px;
  text-align: center;
}

table.listing td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: middle;
}

table.listing tbody tr {
  transition: var(--transition);
}

table.listing tbody tr:hover {
  background-color: var(--light-accent);
}

table.listing tbody tr.listing_row_even {
  background-color: #f9fafc;
}

table.listing tbody tr.listing_row_odd {
  background-color: var(--white);
}

table.listing tbody tr.listing_row_even:hover,
table.listing tbody tr.listing_row_odd:hover {
  background-color: var(--light-accent);
}

table.listing td input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
}

table.listing td input[type="text"]:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

table.listing td.action {
  white-space: nowrap;
  width: 120px;
}

/* Icons and actions */
img.icon {
  vertical-align: middle;
  margin-right: 5px;
}

table.listing td.action a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-right: 5px;
  font-size: 0.85rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

table.listing td.action a:hover {
  background-color: var(--light-accent);
}

table.listing td.action a:last-child {
  color: var(--danger);
}

table.listing td.action a:last-child:hover {
  background-color: rgba(231, 76, 60, 0.1);
}

/* Form elements */
input[type="submit"] {
  padding: 0.6rem 1.2rem;
  background-color: var(--success);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
}

input[type="submit"]:hover {
  background-color: #27ae60;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Footer */
div.footer {
  text-align: right;
  padding: 1rem 1.5rem;
  color: var(--dark-gray);
  font-size: 0.8rem;
  background-color: var(--white);
  border-top: 1px solid var(--light-gray);
  margin-top: 2rem;
  margin-left: 220px;
  position: relative;
}

/* Responsive design */
@media (max-width: 1024px) {
  div.left {
    width: 60px;
  }
  
  div.content, div.footer {
    margin-left: 60px;
  }
  
  ul.left_toolbox li span, 
  ul.left_nav li span, 
  ul.left_id {
    display: none;
  }
  
  ul.left_toolbox li, 
  ul.left_nav li {
    justify-content: center;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  ul.nav_bar1 {
    overflow-x: auto;
  }
  
  table.listing {
    display: block;
    overflow-x: auto;
  }
}