a{
     color: gold;
     font-weight: bold;}
a:visited{
       color: greenyellow;
  }
html, body {
    margin: auto;
    background:#0b0d2e;
    overflow: auto;
    height: 100vh;
}
footer{
  padding:2rem;
  text-align:center;
  color:rgba(255,255,255,.4);
  font-size:.85rem;
}
td{
  border: 2px solid white;
  width: 37px;
}

.add-folder-btn {
background:#28a745;
  color: white;
  border:none;
  border-radius:4px;
  cursor: pointer;
  margin:10px;
}
.add-folder-btn:hover {
    background: #218838;
}
.add-folder-btn {
    background: #28a745;
    color: white;
}
.add-folder-btn:hover {
    background: #218838;
}
.add-event-btn {
background:#007ede;
  color: white;
  margin:10px;
  border:none;
  border-radius:4px;
}
.aspect-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.aspect-symbol {
    font-size: 24px;
    font-weight: bold;
}
.aspect-name {
    font-weight: bold;
    color: #333;
}
.aspect-nature {
    color: #666;
    font-style: italic;
    font-size: 13px;
}
.aspect-content {
    color: #444;
    line-height: 1.6;
}
.aspect-orb {
    color: #999;
    font-size: 12px;
}
.aspect-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.aspect-selector label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ccc;
    cursor: pointer;
    padding: 5px 10px;
    background: #333;
    border-radius: 4px;
    margin: 2px;
}
.aspect-selector label:hover {
    background: #444;
}
.aspect-selector input[type="checkbox"] {
    cursor: pointer;
}
.aspect-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.aspect-selector label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ccc;
    cursor: pointer;
    padding: 5px 10px;
    background: #333;
    border-radius: 4px;
    margin: 2px;
}
.aspect-selector label:hover {
    background: #444;
}
.aspect-selector input[type="checkbox"] {
    cursor: pointer;
}
.aspect-table-container {
    margin: 20px auto;
    padding: 15px;
    background: #063269;
    border-radius: 8px;
    overflow-x: auto;
    grid-column: 1 / 3;
}
.aspect-table1 {
    border-collapse: collapse;
    font-size: 11px;
    color: #fff;
    margin: 0 auto;
}
.aspect-table th,
.aspect-table td {
border:1px solid #444;
  padding:3px 3px;
  text-align: center;
  max-width: 49px;
}
.aspect-table th.planet-header {
    background: #2a2a2a;
    color: #FFD700;
    font-size: 16px;
    font-weight: bold;
}
.aspect-table td.major-aspect {
  color: gold;
  font-weight: bold;
}
.aspect-table td.hard-aspect {
    color: #FF5151;
}
.aspect-table td.soft-aspect {
    color: #0F0;
}
.aspect-table td.no-aspect {
    background: #1a1a1a;
}
.aspect-table tbody tr:hover {
    background: #2a2a2a;
}
.aspect-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-family: monospace;
    background: rgba(68, 170, 255, 0.15);
    border: 1px solid #44AAFF;
    color: #fff;
}
.aspect-tag small {
    color: #aaa;
    display: block;
    margin-top: 2px;
}
.astro-table {
    width: 96%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Zwykła czcionka */
    font-size: 13px;
    margin: 10px auto;
}
.astro-table th, .astro-table td {
    border: 1px solid #ddd;
    padding: 3px;
    text-align: center;
    vertical-align: middle;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Wymuś zwykłą czcionkę */ 
}
.astro-table th {
     background-color: #0eb500ad;
     font-weight: bold;
}
.astro-table .date-cell {
    font-weight: bold;
    background-color: #00f3ff8c;
    text-align: left;
}
.astro-table tbody tr {
    background-color: #fafafa;
}
.astro-table tbody tr:hover {
    background-color: #fafafa80;
}    
.astro{
/*   font-family:astro;*/
   font-size: 13px;
}
.auto-label {
    color: #999;
    font-size: 12px;
    font-style: italic;
}
.active {
/*  background-color: #00e7ff1f;*/
  display: block;
}
.box{
   border: 2px solid rgba(255,215,0,.2);
   border-radius: 13px;
   padding: 5px;
   margin: auto;
/*   width: 90%;*/
   color: white;
   background: linear-gradient(135deg, rgba(255,215,0,.08), rgba(255,140,0,.08));
}
.btn {
    background: #007ede;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5% 13%;
    width: -moz-available;
}
.btn-edit {
    background: #ffc107;
    color: #000;
}
.btn-delete {
    background: #dc3545;
    color: white;
}
.btn:hover {
     background: #005bb5;
}
.btn-save {
    background: #007ede;
    color: white;
}
.btn-cancel {
    background: #6c757d;
    color: white;
}
.btn-save {
    background: #007ede;
    color: white;
}
.btn-cancel {
    background: #6c757d;
    color: white;
}
.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    background: #007ede;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.btn-sm:hover {
    background: #005bb5;
}
.btn-apply {
    width: 96%;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}
.btn-apply:hover {
    background: #218838;
}
.builder-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.builder-section {
    flex: 1;
    min-width: 200px;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
}
.builder-section.full-width {
    flex: 1 1 100%;
}
.builder-section h4 {
    color: #FFD700;
    margin: 0 0 10px 0;
    font-size: 14px;
}
.builder-actions {
    display: flex;
    gap: 10px;
}
.builder-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.builder-section {
    flex: 1;
    min-width: 250px;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
}
.builder-section.full-width {
    flex: 1 1 100%;
}
.builder-section h4 {
    color: #FFD700;
    margin: 0 0 10px 0;
    font-size: 14px;
}
.builder-actions {
    display: flex;
    gap: 10px;
}
.calc-panel {
    position: absolute;
    top: 0;
    top: 39%;
    left: 26%;
    width: 380px;
    background: rgba(11, 13, 46, 0.89);
    z-index: 1000;
    overflow-y: auto;
    box-sizing: border-box;
    display:none;
}
.calc-panel.open {
    right: 0;
}
.calc-layers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}
.calc-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.calc-radio:hover {
    background: #f0f0f0;
}
.calc-radio input[type="radio"] {
    margin: 0;
}
.calc-radio.disabled {
    opacity: 0.4;
    pointer-events: none;
}
.calc-display {
    background: #1a1a1a;
    color: #FFD700;
    padding: 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
    min-height: 20px;
}
.calc-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.calc-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.calc-label {
    flex: 1;
    font-weight: bold;
    color: #fff;
}
.calc-btn {
    width: 40px;
    height: 36px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.2s;
}
.calc-btn.calc-minus {
    background: #dc3545;
    color: white;
}
.calc-btn.calc-minus:hover {
    background: #c82333;
}
.calc-btn.calc-plus {
    background: #28a745;
    color: white;
}
.calc-btn.calc-plus:hover {
    background: #218838;
}
.calc-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}
.calc-input {
    width: 60px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}
.calc-input:disabled {
    background: #f0f0f0;
    color: #999;
}
.calc-row.disabled {
    opacity: 0.4;
    pointer-events: none;
}
.content{
     text-align: center;
}
.collapsible {
border: 3px solid #a6f307;
  border-radius: 11px;
  background: #063269;
  padding: 3px;
  margin: 10px;
  width: 98%;
  height: fit-content;
  text-align: center;
  color: white;
}
.condition-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 13px;
}
.condition-item .remove-condition {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 12px;
}
.condition-item .remove-condition:hover {
    background: #c82333;
}
.custom-aspects {
    margin-top: 10px;
}
.custom-aspects input {
    width: 100%;
    padding: 8px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
}
.condition-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 13px;
    font-family: monospace;
}
.condition-item .remove-condition {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 12px;
}
.condition-item .remove-condition:hover {
    background: #c82333;
}
.custom-aspects {
    margin-top: 10px;
}
.custom-aspects input {
    width: 100%;
    padding: 8px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
}
.close-panel {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #f00;
}
.close-panel:hover {
    color: #000;
}
.data-section {
    display: none;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.data-section.active {
    display: block;
}
.data-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.data-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.data-row:last-child {
    border-bottom: none;
}
.data-label {
    font-weight: bold;
    color: #555;
}
.data-value {
    color: #000;
}
.data-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}
.date-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.date-group label {
    color: #FFD700;
    font-weight: bold;
    font-size: 14px;
}
.date-group input {
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}
.edge-trigger {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 100vh;
    z-index: 998;
    cursor: pointer;
}
.edge-trigger:hover {
    background: rgba(0,126,222,0.1);
}
.event-form {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}
.event-form.show {
    display: block;
}
.event-form input,
.event-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
.event-form textarea {
    resize: vertical;
    min-height: 60px;
}
.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.event-item {
    padding: 6px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    display: grid;
    grid-template-columns: 50% auto;
}
.event-item:hover {
    background: #e9ecef;
}
.event-item-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}
.event-item-actions {
     text-align: end;
}
.event-item-actions button {
    padding: 4px 10px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.event-tooltip {
    display: none;
    position: absolute;
    left: 25%;
    top: 21px;
    background: #333;
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1001;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.event-item:hover .event-tooltip {
    display: block;
}
.event-form {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}
.event-form.show {
    display: block;
}
.event-form input,
.event-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
.event-form textarea {
    resize: vertical;
    min-height: 60px;
}
.error {
    color: #d32f2f;
    background: #ffebee;
    padding: 10px;
    border-radius: 4px;
}
.form-actions {
    display: flex;
    gap: 10px;
}
.form-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.folder-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.form-actions {
    display: flex;
    gap: 10px;
}
.form-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.form-group > input {
    width: 200px;
    margin: 5px;
    padding: 5px;
}
.form-select {
    padding: 8px 12px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.form-select:focus {
    outline: none;
    border-color: #FFD700;
}
.form-select {
    padding: 8px 12px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.form-select:focus {
    outline: none;
    border-color: #FFD700;
}
.formula-builder {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #444;
}
.formulas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.formula-conditions {
    margin-top: 15px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 5px;
    min-height: 50px;
}
.formula-panel {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #444;
}
.formula-panel h3 {
    color: #FFD700;
    margin-bottom: 15px;
    margin-top: 0;
}
.formula-conditions {
    margin-top: 15px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 5px;
    min-height: 50px;
}
.formula-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.formula-controls input {
    flex: 1;
    padding: 8px;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}
.formula-controls input::placeholder {
    color: #888;
    font-size: 12px;
}
.formula-editor textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
}
.formula-helpers {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.formula-helpers .btn-sm {
    padding: 6px 12px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}
.formula-helpers .btn-sm:hover {
    background: #555;
}
.game-label {
    font-weight: 600;
    min-width: 100px;
}
.game-numbers {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.header {
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    margin: 13px;
}
.header h1 {
    margin: 10px;
    font-size: 24px;
}
.horoscope-section {
    display: none;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}
.horoscope-section.active {
    display: block;
}
.horoscope-settings {
     position: fixed;
     left: 50%;
     top: 25%;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 20px auto;
    max-width: 400px;
    display: none;
}
.horoscope-settings.active {
    display: block;
}
.horoscope-settings h3 {
    margin: 0 0 15px 0;
    color: #007ede;
}
.info {
    color: #1976d2;
/*    background: #e3f2fd;*/
    padding: 10px;
    border-radius: 4px;
}
.interpretation-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.interpretation-container h2 {
    color: #9c27b0;
    margin-bottom: 10px;
}
.interpretation-info {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}
.interpretation-aspect {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.interpretation-aspect.harmonious {
    border-left: 4px solid #4caf50;
}
.interpretation-aspect.tense {
    border-left: 4px solid #f44336;
}
.interpretation-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.interpretation-container h2 {
    color: #9c27b0;
    margin-bottom: 10px;
}
.interpretation-info {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}
.interpretation-planet {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #9c27b0;
}
.interpretation-planet h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.kontener > div{
   width: 96%;
} 
.kontener {
  display: grid;
  margin: 5px 0px 5px 5px;
  grid-template-areas:
    "wykres info"
    "linia linia";
  grid-template-columns: 50% auto;
  transition: max-height 0.1s ease-out;
  color: white;
  grid-gap: 14px;
}

.kontener > .info {
  grid-area: info;
  display: flex;
/*  width: max-content;*/
  margin-left: auto;
  margin-right: auto;
  height: min-content;
}
.logic-selector label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ccc;
    cursor: pointer;
    margin-right: 15px;
}
.logic-selector label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ccc;
    cursor: pointer;
    margin-right: 15px;
}
.lucky-numbers-today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.lucky-numbers-today h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    text-align: center;
}
.lucky-game-section{
    font-size: 13px;
    opacity: 0.9;
    display: grid;
    grid-template-columns: 3% auto;
}
.lucky-game-section h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.9;
}
.lucky-numbers-grid {
    display: flex;
    justify-content: start;
    gap: 1px;
    flex-wrap: wrap;
    margin: 5px;
}
.lucky-number {
     border-radius:61%;
     font-weight: bold;
     font-size: 13px;
     min-width: 17px;
     text-align: center;
     box-shadow: 0 2px 5px rgba(0,0,0,0.3);
     padding:3px;
}
.lucky-number.lotto {
    background: rgba(255, 215, 0, 0.3);
    border: 2px solid #FFD700;
}
.lucky-number.multi {
    background: rgba(0, 255, 255, 0.3);
    border: 2px solid #00FFFF;
}
.lucky-numbers-list {
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
}
.lucky-day-item {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.lucky-date {
    font-weight: bold;
    color: #667eea;
    font-size: 16px;
    margin-bottom: 10px;
}
.lucky-games {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lucky-game {
    display: flex;
    align-items: center;
    gap: 10px;
}
.message {
    display: none;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    display: block;
}
.message.error {
    background: #ffebee;
    color: #d32f2f;
    display: block;
}
.minfo{
     padding: 13px 0px;
}
.normal{
      font-size:13px;
      padding: 5px;
/*      border: 1px solid #008000;*/
}
.nav-btn {
background:#312428;
  color: #fff;
  padding:8px 16px;
  border:2px solid rgba(255,215,0,.5);
  border-radius:13px;
  cursor: pointer;
  text-decoration:none;
  font-weight: bold;
  font-size: 14px;
  margin-top: 6px;
}
.nav-btn:hover {
    /* background: #f0f0f0; */
}
.nav-btn.secondary {
   background:transparent;
  color: #fff;
  border:1px solid #fff;
  margin:10px 0px;
  text-align: center;
}
.nav-btn.secondary:hover {
    background: rgba(255,255,255,0.1);
}
.num {
border-radius:50%;
  font-size: 14px;
  font-weight: bold;
  min-width: 17px;
  text-align: center;
  min-height: 17px;
  padding:3px;
}
.num.lotto {
    background: #00CED1;
    color: #000;
}
.num.multi {
    background: #00CED1;
    color: #000;
}
.panel-actions {
display: grid;
  grid-template-areas:
     "zbio zbio" 
     "a    b   ";
  margin-bottom: 15px;
  column-gap: 0%;
  grid-template-columns: 50% 50%;
  grid-template-rows: 3em 5em;
}
.panel-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007ede;
}
.panel-header h2 {
    margin: 0;
      color: white;
}
.planet-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.planet-checkboxes label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ccc;
    cursor: pointer;
    padding: 5px 8px;
    background: #333;
    border-radius: 4px;
    font-size: 13px;
}
.planet-checkboxes label:hover {
    background: #444;
}
.planet-checkboxes input[type="checkbox"] {
    cursor: pointer;
}
.pr-label {
    color: #cc6600;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.premium-locked {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}
.premium-badge {
background:
linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding:3px 3px;
  border-radius:49px;
  font-size: 12px;
  margin-left: 8px;
}
.premium-locked:hover::after {
    content: "Funkcja dostępna tylko dla użytkowników Premium";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    z-index: 1000;
}
.result-item {
    padding: 15px;
    margin-bottom: 10px;
    background: #1a1a1a;
    border-radius: 4px;
    border-left: 4px solid #44AAFF;
}
.result-item .result-date {
    color: #FFD700;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}
.result-item .result-aspects {
    color: #ccc;
    font-size: 14px;
}
.result-item .result-aspects span {
    display: inline-block;
    margin-right: 15px;
    padding: 2px 8px;
    background: #333;
    border-radius: 3px;
}
.results-section {
    margin-bottom: 20px;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 5px;
}
.result-item {
    padding: 12px;
    margin-bottom: 8px;
    background: #222;
    border-radius: 4px;
    border-left: 4px solid #44AAFF;
}
.result-date {
    color: #FFD700;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 8px;
}
.result-aspects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.result-error {
    padding: 10px;
    background: #3a1a1a;
    border: 1px solid #dc3545;
    border-radius: 4px;
    color: #ff6b6b;
    margin-bottom: 10px;
}
.result-info {
    padding: 10px;
    background: #1a2a3a;
    border: 1px solid #44AAFF;
    border-radius: 4px;
    color: #88ccff;
    margin-bottom: 10px;
}
.sabian-symbol {
    background: rgba(156, 39, 176, 0.1);
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}
.sign-expression {
    color: #555;
    font-size: 14px;
}
.search-section {
    padding: 20px;
    background: #1a1a1a;
    min-height: 100vh;
}
.search-container {
    max-width: 1400px;
    margin: 0 auto;
}
.search-daterange {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 30px;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 8px;
}
.search-actions {
display: grid;
  gap:11px;
  justify-content: center;
  margin-bottom: 30px;
  grid-template-columns: 25% 25% 25% 25%;
  width: 90%;
  align-content: center;
  padding: 0 5%;
}
.search-results {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}
.search-results h3 {
    color: #FFD700;
    margin-top: 0;
}
.side-panel {
position: absolute;
  top: 0;
  left: -500px;
  width: 400px;
  height: 88vh;
  background:linear-gradient(#050617, #007ede);
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  transition:left 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  padding:20px;
}
.side-panel.open {
    left: 0;
}
.side-panel-overlay {
/*    position: fixed;*/
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}
.side-panel-overlay.show {
    display: block;
}
.setting-row {
    margin-bottom: 10px;
    padding: 8px;
    border-bottom: 1px solid #eee;
}
.setting-row label {
    display: inline-block;
    margin-right: 10px;
}
.selector-panel {
    margin-top: 8px;
    padding: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    gap: 10px;
}
.specialgreen{
	font-size: 17px;
	  width: 13%;
	  padding: 8px;
	  background: #28a745;
	  border: 3px solid gold;
	  border-radius: 8px;
}
.tr-label {
    color: #0066cc;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.tempbuton{
   grid-row: 3/4;
   width: 100px;
   height: 50px;
}
.tooltip-row {
    margin-bottom: 5px;
}
.tooltip-row:last-child {
    margin-bottom: 0;
}
.tooltip-label {
    font-weight: bold;
    color: #FFD700;
}
.user-info {
display: grid;
  grid-template-columns: 163px 130px;
  grid-gap:5px;
  padding:10px;
}
.user-info span {
    font-weight: bold;
}

#accountFormSection input[type="email"],
#accountFormSection input[type="password"] {
    width: 200px;
    margin: 5px;
    padding: 5px;
}
#accountFormSection .form-group > input {
    width: 200px;
    margin: 5px;
    padding: 5px;
}
#aspectChart{
     padding: 13px;
}

#btnEditAccount {
    background: #28a745;
}
#btnEditAccount:hover {
    background: #218838;
}
#btnGenerateLuckyMonth{
     background:#28a745;
     margin:5px;
     position: relative;
     left: 39%;
     right: 39%;
}
#interpretationContent {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}
#luckyNumbersCon{
     display: none;
     margin:13px;
}
#resultsContainer {
    max-height: 500px;
    overflow-y: auto;
}
#rok{
	font-size: 17px;
  width: 13%;
  padding: 8px;
  background: #28a745;
  border: 3px solid gold;
  border-radius: 8px;
}
#tab_plan_poz {
  grid-area: linia;
  margin: 10px auto;
  height: min-content;
}
#tabPlan{
  height: min-content;
  border: 2px solid black;
  border-collapse: collapse;
}

@font-face {
    font-family: astro;
    src: url(astro.ttf);
}
@media (max-width: 768px) {

    .header {
        flex-direction: column;      /* Elementy jeden pod drugim */
        align-items: stretch;
        padding: 10px;
        gap: 10px;
        color: white;
        display: flex;
        margin: 13px;
    }
    
    .header h1 {
        font-size: 18px;
        margin: 5px;
        text-align: center;
    }
    
    .user-info {
        grid-template-columns: 1fr;  /* Jedna kolumna zamiast dwóch */
        text-align: center;
        padding: 5px;
    }
    
    .user-info span {
        font-size: 13px;
    }
    
    /* Przyciski nawigacyjne w nagłówku */
    .header .nav-btn,
    .header a.nav-btn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 3px 0;
        padding: 8px;
        font-size: 13px;
        box-sizing: border-box;
    }
    
    /* === KONTENER GŁÓWNY === */
    .kontener {
        grid-template-columns: 1fr !important;  /* Jedna kolumna */
        grid-template-areas:
            "wykres"
            "info"
            "linia" !important;
        margin: 5px;
        padding: 5px;
        gap: 10px;
    }
    

    .kontener > #wykres svg {
        max-width: 100%;
        height: auto;
    }
    
    /* === PANEL INFO === */
    .kontener > .info,
    #info {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 8px;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 12px;
        line-height: 1.4;
    }
    
    #info .box {
        width: 100%;
        box-sizing: border-box;
        padding: 8px;
        margin: 0;
    }
    
    #info span {
        word-break: break-word;
    }
    
    /* === TABELA PLANET (tab_plan_poz) === */
    #tab_plan_poz {
        width: 100%;
        overflow-x: auto;              /* Przewijanie poziome */
        -webkit-overflow-scrolling: touch;
        margin: 10px 0;
        box-sizing: border-box;
    }
    
    #tabPlan {
        min-width: 900px;              /* Wymuś minimalną szerokość */
        font-size: 10px;
        border-collapse: collapse;
    }
    
    #tabPlan td {
        width: 28px;
        padding: 2px;
        font-size: 10px;
        white-space: nowrap;
    }
    
    /* === PANEL NAWIGACYJNY CHARTNAVPANEL === */
    #chartNavPanel,
    .chartNavPanel {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        padding: 8px;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }
    
    #chartNavPanel button,
    .chartNavPanel button {
        flex: 1 1 auto;
        min-width: 80px;
        font-size: 12px;
        padding: 6px 10px;
        margin: 2px;
    }
    
    /* === PANEL BOCZNY (side-panel) === */
    .side-panel {
/*        width: 100vw !important;       *//* Pełna szerokość na telefonie */
        left: -100vw;
        max-width: 100%;
    }
    
    .side-panel.open {
        left: 0;
    }
    
    /* === PANEL KALKULATORA === */
    .calc-panel {

        box-sizing: border-box;
    }
    
    /* === SEKCJA WYSZUKIWANIA === */
    .search-daterange {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-group input {
        width: 100%;
        box-sizing: border-box;
    }
    
    .formulas-container {
        grid-template-columns: 1fr;    /* Jedna kolumna */
    }
    
    .search-actions {
        grid-template-columns: 1fr 1fr;  /* 2 kolumny zamiast 4 */
        width: 100%;
        padding: 0;
    }
    
    .search-actions button {
        width: 100%;
        font-size: 12px;
        padding: 8px;
    }
    
    /* === TABELA ASPEKTÓW === */
    .aspect-table-container {
        overflow-x: auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .aspect-table {
        font-size: 9px;
    }
    
    .aspect-table th,
    .aspect-table td {
        padding: 2px;
        max-width: 30px;
    }
    
    /* === TABELA ZBIORCZA === */
    .astro-table {
        font-size: 10px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* === PANEL USTAWIEŃ HOROSKOPU === */
    .horoscope-settings {
        position: fixed;
        left: 5% !important;
        right: 5%;
        width: 90% !important;
        max-width: 90%;
        top: 15% !important;
        box-sizing: border-box;
    }
    
    /* === PRZYCISKI OGÓLNE === */
    .btn,
    .btn-apply,
    .btn-sm {
        width: 100%;
        box-sizing: border-box;
        margin: 5px 0;
    }
    
    /* === FORMULARZE === */
    .form-group > input,
    .event-form input,
    .event-form textarea {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    /* === SZCZĘŚLIWE NUMERY === */
    .lucky-numbers-today {
        max-width: 100%;
        margin: 10px;
        padding: 15px;
        box-sizing: border-box;
    }
    
    .lucky-numbers-list {
        max-width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }
    
    /* === INTERPRETACJE === */
    .interpretation-section {
        padding: 10px;
        max-width: 100%;
    }
    
    html, body {
        max-width: 100vw;
         max-width: 100%;
        box-sizing: border-box;
    }
    
    body {
        font-size: 14px;
    }

    table, #tabPlan, .aspect-table, .astro-table {
        max-width: none;
    }
    
    .header {
        flex-wrap: wrap;
    }
    
    .user-info {
        grid-template-columns: 1fr 1fr;
    }
    
    .kontener {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-actions {
        grid-template-columns: 1fr 1fr 1fr;
    }
.aspectChartContainer {
	padding:5px; 
	margin-top:20px; 
	grid-column-start: 1; 
	grid-column-end: 3;
    width: 100% !important;
    max-width: 100%;
	height: 750px  !important;
    box-sizing: border-box;
    /* padding: 5px !important; */
    /* margin: 10px 0 !important; */
    /* grid-column: 1 / -1 !important;  /* Zajmuje wszystkie kolumny */ 
}

#chartNavPanel {
    flex-wrap: wrap !important;      /* Przyciski zawijają się */
    gap: 5px !important;
    padding: 8px !important;
    width: 100%;
    box-sizing: border-box;
}

#chartNavPanel .nav-btn {
    flex: 1 1 auto;
    min-width: 70px;
    font-size: 11px;
    padding: 6px 8px;
    margin-left: 0px;
}

#chartRangeLabel {
    width: 100% !important;
    min-width: auto !important;
    margin: 8px 0 !important;
    font-size: 13px;
    text-align: center;
    order: -1;  /* Przenieś etykietę na górę */
}

#chartHint {
    font-size: 11px;
    padding: 0 10px;
}
}
