  
/* Base styles: shared colors and defaults. */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --error-color: #e74c3c;
    --text-color: #333;
    --light-gray: #ecf0f1;
    --border-radius: 4px;
}

html {
  overflow-y: scroll;
   scroll-padding-top: 180px;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
    padding: 0;
	 background-color: #f4f4f4;
	 font-size:0.75em;
}


textarea {
  font-size:1.1em;
}

input, select{
  font-size:1em;
}

a, a:visited , a:hover {
	color: var(--text-color);
}

a.link, a.link:visited , a.link:hover, menu.span {
	color: var(--text-color);
}

a.link_wide, span.text_wide {
 
 padding-left:8px;
 padding-right:8px;
 color: var(--text-color);
 
 display: flex;          /* or display:block */
    width: 100%;
    height: 100%;
    min-height: 100%;
    justify-content: center;   /* optional */
    align-items: center;       /* optional */
    padding: 8px;
    text-decoration: none;
    color: inherit;

}



td.cell_click {
    position: relative;
    padding: 0;
}

td.cell_click a {
    position: absolute;
    inset: 0;               /* top/right/bottom/left = 0 */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

td.cell_click a:hover {
    background-color: #e4e4ff;
}

td.cell_click span {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    box-sizing: border-box;
}


td.rotate {
    position: relative;
    width: 35px;
    height: 130px;
    padding: 0; 	
}

td.rotate span {
    position: absolute;
    left: 15px;
    bottom: 5px;
    transform: rotate(-70deg);
    transform-origin: bottom left;
    white-space: nowrap;
}

.dotted {
	text-decoration: underline dotted;	
}
.dashed {
	text-decoration: underline dashed;	
	text-decoration-thickness: 3px; 
}

table.table {
	border-collapse: collapse;
}

.big_border_right {
	 border-right:2px solid #dddd;
}

td.cell_gewoon {
	border:1px solid #bbb;
	padding:2px;	
	padding-left:3px;	  
	padding-right:3px; 
	  	   
}

td.cell_focus {
	  background-color:#E3E2C5; 
}

td.cell_titel { 	  
	   font-weight:bold;
	   background-color:#d9d9d9; 	   
}

td.cell_heading {
	  background-color:#C5E2E3; 
}

td.paddingright {
	 padding-right:25px;
}

td.cell_big {
	 font-size:1.5em;
	 background-color:#c9c9c9; 
	 text-align:center;
}

.center {
	 text-align:center;	
}
	
div.supra { 
	padding:2px;
   background-color:#fcfcfc;
}  

.green , td.green  {
	background-color:#d9f9d9;
}

.green_dark , td.green_dark {
	background-color:#b9d9b9;
}

.red {
	background-color:#f9d9d9;
}

/* special link to something */
.yellow_border {
	border:1px solid #F3F333;	
}

/* something is present in a good way */
.green_border {   
	border:1px solid #33F333;	
}

.error {      /* missing things or wrong things */
	background-color:#f9d9d9;
	border:1px solid #F33333;
	max-width:250px;
	padding-left:3px; 
	padding-right:20px;
}

/* current edit */
.blue_border {
	border:1px solid #3333F3;	
}

.grey_border {
	border:1px solid #d9d9d9;	
}

.filter_warning {
	background-color:#f9d9d9;
	padding:1px;
    color: var(--text-color);	
}

h4 {
	margin-top:3px;
	margin-bottom:3px;
}

.panel_major {
	/*
	border: 1px solid #ddd;
	background-color:#f0f0f0;
	*/
	/* min-width:200px;   */
	/* max-width:300px;    */
	margin-bottom:3px;
	padding:6px;
	
	
}

   	 
textarea.textarea_full {
	width: 100%;
    box-sizing: border-box;
}


.flex-container {
  display: flex;
  flex-direction: row;
}

.flex-container > div {
	border: 0px solid #33cc33;
	padding:5px;
	
	
}


textarea.highlight {
	  border:1px dashed #3939f9;
	  background-color:#e9e9f9;
}



.striped {
    background-color: white;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 6px,
        rgba(0,0,0,.08) 6px,
        rgba(0,0,0,.08) 12px
    );
}

.interface_button {
	 margin:3px;
}





/* text pair filter switching */

/* Each text_source/text_filtered pair occupies the same grid cell */
.text_pair {
    display: grid;   
}


/* Put both versions on top of each other */
.text_pair > div {
    grid-area: 1 / 1;
}


/* Default mode */
.text_source {
    visibility: visible;
}

.text_filtered {
    visibility: hidden;
}


/*
  below: not in use    ?
*/

  #json_editor {
      width: 90%;
      height: 600px;
      border: 1px solid #ccc;
      padding: 10px;
	 
      font-family: monospace;
       white-space: pre-wrap;
      overflow: auto;
	  
	  line-height: 13pt;
    } 
			   	
	.json-key       { color: brown; }
    .json-string    { color: green; }
    .json-number    { color: darkorange; }
    .json-boolean   { color: blue; }
    .json-null      { color: red; }
	
/* alles hieronder is oude stuff */

/* Layout containers */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 6px;
}

/* Navigation */
.nav-container {
    background: var(--primary-color);
    padding: 1rem;
	position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container a, .nav-container span {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.nav-container a:hover {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
}

/* Content sections */
.content-section {
    padding: 0.7rem;
    background: white;
	margin: 0;
    margin-bottom: 1rem;
	 
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Form elements */
.form-group {
    margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group select {    
    padding: 0.1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group select {
    background: white;
}

/* Buttons */
.button-group {
    padding: 0.3rem 0;
}

.button-group button {
    padding: 0.1rem 0.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.button-group button:hover {
    opacity: 0.9;
}

.button-group .primary {
    background: var(--accent-color);
    color: white;
}

.button-group .secondary {
    background: var(--secondary-color);
    color: white;
}

.button-group .danger {
    background: var(--error-color);
    color: white;
}

/* Messages */
.message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--border-radius);
}

.message.info {
    background: var(--accent-color);
    color: white;
}

.message.success {
    background: var(--success-color);
    color: white;
}

.message.warning {
    background: var(--warning-color);
    color: var(--text-color);
}

.message.error {
    background: var(--error-color);
    color: white;
}

/* Table styles */
.table-container {
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th,
.table-container td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.table-container th {
    background: var(--light-gray);
    font-weight: 600;
}

/* Card styles */
.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Grid layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.group_flex {
  display: flex; 
  flex-direction: row;
  gap: 1rem;  
}


  /* Compact Form Layout */
.compact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    padding: 0.1rem 0;
}

.compact-form-row {
    display: flex;
    align-items: center;
    width: 45%;
    margin-bottom: 0.2rem;
}

.compact-form-row label {
    width: 150px;
    min-width: 150px;
    margin-bottom: 0;
    margin-right: 0.2rem;
    text-align: right;
    font-weight: 500;
}

.compact-form-row input[type="text"],
.compact-form-row input[type="number"] {
    flex: 1;
    max-width: 300px;
    padding: 0.3rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .compact-form-row {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .compact-form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .compact-form-row label {
        width: 100%;
        text-align: left;
        margin-bottom: 0.25rem;
    }
    
    .compact-form-row input[type="text"],
    .compact-form-row input[type="number"] {
        width: 100%;
        max-width: none;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
}




/* Sections */

.editor_section {
	 border:1px solid #f0c0c0;
	 background-color:#fff0f0;
}



  /* Section and Block code for site */
.col-full { grid-column: 1 / -1; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2-1 { grid-template-columns: 2fr 1fr; }
.cols-1-2 { grid-template-columns: 1fr 2fr; }

.content-section {
            display: grid;
            gap: 20px;
            padding: 20px 0;
        }

.content-section-box {
	background: #93c5fd;
	border: 2px solid #1e40af;
	padding: 10px;
	min-height: 50px;
	/* display: flex;     */
	align-items: center;
	justify-content: center;
}




/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
}





/* modal text block edit */
 .content-block {
		/*
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 15px;
            margin-bottom: 20px;
			*/
        }

        .content-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .content-title {
            margin: 0;
            font-weight: bold;
            color: #2c3e50;
        }

        .edit-button {
            background-color: #3498db;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.3s;
        }

        .edit-button:hover {
            background-color: #2980b9;
        }

        .content-text {
            margin: 0;
            cursor: pointer;
        }

        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .modal {
            background-color: white;
            padding: 20px;
            border-radius: 5px;
            width: 80%;
            max-width: 500px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .modal-title {
            margin: 0;
            font-size: 20px;
            color: #2c3e50;
        }

        .close-button {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #7f8c8d;
            padding: 0;
        }

        .modal-body {
            margin-bottom: 20px;
        }

        .modal-info {
            background-color: #f0f7fb;
            border-left: 5px solid #3498db;
            padding: 10px;
            margin-bottom: 10px;
            font-size: 14px;
        }

        textarea {
           
            
            padding: 3px;
            border: 1px solid #ddd;
            border-radius: 2px;
            font-family: inherit;
            resize: vertical;
           
        }

        .modal-footer {
            display: flex;
            justify-content: flex-end;
        }

        .submit-button {
            background-color: #2ecc71;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
        }

        .submit-button:hover {
            background-color: #27ae60;
        }

/* Action colors; keep the existing button dimensions. */
input[type="button"][value="Edit"] {
    background-color: #DBEAFE;
    color: #1E40AF;
    border-color: #BFDBFE;
    border-style: solid;
}

input[type="button"][value="Edit"]:hover {
    background-color: #BFDBFE;
}

/* Matches Save and Save + Close, including surrounding spaces. */
input[type="submit"][value~="Save"] {
    background-color: #DCFCE7;
    color: #166534;
    border-color: #BBF7D0;
    border-style: solid;
}

input[type="submit"][value~="Save"]:hover {
    background-color: #BBF7D0;
}

/* Matches New, New position, New connection, and New assignment. */
input[type="button"][value~="New"],
input[type="submit"][value~="New"] {
    background-color: #F3E8FF;
    color: #6B21A8;
    border-color: #E9D5FF;
    border-style: solid;
}

input[type="button"][value~="New"]:hover,
input[type="submit"][value~="New"]:hover {
    background-color: #E9D5FF;
}
