/* General Styles */
body {
    /* font-family: 'Poppins', sans-serif; */
    font-family: "Roboto", serif;
    font-weight: 500;
    font-style: normal;
    font-optical-sizing: auto;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/*
  font-family: "Work Sans", serif;
  font-family: "Libre Franklin", serif;
  font-family: 'Poppins', sans-serif;
  font-family: "Roboto", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
*/

/* Side Navigation Bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: linear-gradient(180deg, #6a0dad, #8a2be2);
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 2000;
}

nav.collapsed {
    width: 60px;
    overflow: hidden;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 20px 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: underline;
}

nav ul li a span {
    display: inline-block;
    transition: all 0.3s ease-in-out;
}

nav.collapsed ul li a {
    justify-content: center;
    color: white;
}

nav.collapsed ul li a i {
    font-size: 1.5rem;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease-in-out;
}

nav.collapsed ul li span {
    display: none;
}

nav .toggle-btn {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 45px;
    height: 45px;
    background-color: #6a0dad;
    border: 2px solid white;
    color: white;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
    z-index: 2100;
}

/* Main Content */
main {
    margin-left: 290px; /* Increased from 140px to prevent overlap (nav width + padding) */
    padding: 20px;
    width: calc(100% - 290px); /* Adjusted to match new margin-left */
    transition: margin-left 0.3s ease, width 0.3s ease;
    flex: 1;
    position: relative;
    z-index: 1000;
    max-width: 1200px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Style for the file input container */
.file-input-container {
    position: relative;
    margin: 20px 0;
}

/* Hide the default file input */
.file-input {
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    position: absolute;
}

/* Style for the custom file input button */
.file-input-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: 2px solid #d6a1e7;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #8704df;
    transition: all 0.3s ease;   
}

/* Hover effect */
.file-input-label:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Focus style */
.file-input:focus + .file-input-label {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Selected file name display */
.file-name {
    margin-left: 10px;
    font-size: 14px;
    color: #36383b;
}

/* Disabled state */
.file-input:disabled + .file-input-label {
    background-color: #e9ecef;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Success state - when file is selected */
.file-input.has-file + .file-input-label {
    border-color: #198754;
    color: #198754;
}

/* Error state - if needed */
.file-input.has-error + .file-input-label {
    border-color: #dc3545;
    color: #dc3545;
}

main.collapsed {
    margin-left: 100px; /* Increased from 70px (nav collapsed width + padding) */
    width: calc(100% - 100px);
}

/* Button Styles */
.btn, button {
    background-color: #7318a4;
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    text-decoration: none;
}

.btn:hover, button:hover {
    background-color: #05b5e5;
}

.icon-button {
    background-color: #b110e1;
    color: white;
    padding: 6px 8px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    text-decoration: none;
}

.icon-button:hover {
    background-color: #05b5e5;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

form label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
    width: 200px;
}

input[type="text"], [type="password"], [type="email"], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
}

input[type="text"]:focus, [type="password"]:focus, [type="email"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #6a0dad;
    box-shadow: 0 0 5px rgba(106, 13, 173, 0.5);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background: linear-gradient(180deg, #574f5c, #574f5c);
    color: white;
    text-transform: capitalize;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background: #f1f1f1;
}

/* Tabs Container Styles */
.tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    padding: 0 20px;
}

.tabs-container a {
    flex: 0 1 auto;
    min-width: 100px;
    padding: 15px 25px;
    background-color: #644664;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.3s ease-in-out;
}

.tabs-container a:hover {
    background-color: #08b6d8;
}

.tabs-container a.active {
    background-color: #621f92;
}

/* Action Icons */
.action-icon {
    margin-right: 10px;
    font-size: 1.0em;
    color: #333;
    text-decoration: none;
    color: #5b0897;
}

.action-icon:hover {
    color: #5b0897;
}

/* Headings */
h2 {
    color: #6a0dad;
    text-align: center;
    margin-bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px 0;
    background: #ddd;
    color: #77079c;
    width: 100%;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    nav {
        width: 60px;
    }

    main {
        margin-left: 80px;
        width: calc(100% - 80px);
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row select {
        width: 100%;
    }
    
    .tabs-container a {
        min-width: 150px;
        padding: 12px 20px;
    }
}

/* User Form Styles */
.user-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: flex;
    margin-bottom: 5px;
    align-items: left;
}

.form-group label {
    width: 250px;
    padding-top: 10px;
    font-weight: 500;
    color: #333;
}

.submit-group {
    display: flex;
    margin-bottom: 5px;
    align-items: center;
    margin-left: 400px;
}

.input-container {
    flex: 1;
}

.input-container input,
.input-container select {
    width: 70%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.roles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 5px 0;
}

.role-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}

/* Multiple select styling */
select[multiple] {
    min-height: 100px;
}

.text-danger {
    color: #dc3545;
}

.fa-edit, .fa-trash-alt {
    cursor: pointer;
}

.fa-edit:hover, .fa-trash-alt:hover {
    opacity: 0.8;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

input[type="text"], 
[type="email"],
[type="password"],
textarea, 
select {
    border: 2px solid #6a0dad !important;  /* Using your theme's purple color */
    border-radius: 5px;
    padding: 8px 12px;
    width: 100%;
    font-size: 1em;
    outline: none;
}

/* Optional: You can still have a different style on focus */
input[type="text"]:focus, 
[type="email"]:focus,
[type="password"]:focus,
textarea:focus, 
select:focus {
    box-shadow: 0 0 5px rgba(106, 13, 173, 0.5);  /* Subtle glow effect on focus */
}

/* Sidebar monochrome styling */
#sidebar {
    background: rgb(72, 69, 75);  /* Dark background */
    
}

#sidebar ul li a {
    color: #eceef3;  /* Muted grey for text */
    transition: all 0.1s ease;
    font-weight: normal;
    text-decoration: none;
}

#sidebar ul li a i {
    color: #eceef3;  /* Slightly darker grey for icons */
    font-size: 1.2rem;
}

#sidebar ul li a:hover {
    background: #07bcdc;  /* Darker grey on hover */
    color: #2d4043;  /* Lighter grey for text on hover */
}

#sidebar ul li a:hover i {
    color: #323741;  /* Icons also become lighter on hover */
}

/* Toggle button styling */
#sidebar .toggle-btn {
    background: #07bcdc;  /* Match sidebar background */
    color: #222429;  /* Match icon color */
    border-color: #4b5563;  /* Darker border */
}

#sidebar .toggle-btn:hover {
    background: #05b0e8;  /* Same as hover background */
    color: #2a2f3a;  /* Same as hover text */
}

.filter-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin: 0;
}

select {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.filter-group {
    display: flex;
    flex-direction: column;
}
.filter-group label {
    margin-bottom: 5px;
    font-weight: 500;
}
.selected-filters {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.selected-filters p {
    margin: 0;
    font-weight: 500;
}

.chart-container { 
    display: flex; 
    justify-content: space-around; 
    margin-top: 20px; 
}
.chart { 
    width: 45%; 
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.status-form {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    justify-content: center;
}
.checkbox-group {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}
.status-table th, .status-table td {
    padding: 12px;
    text-align: left;
}
.action-icons {
    display: flex;
    gap: 5px;
}
.success-badge, .defect-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 5px;
}
.success-badge {
    background: #d4edda;
    color: #155724;
}
.defect-badge {
    background: #f8d7da;
    color: #721c24;
}
.tag-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
    padding: 10px;
}
.tag-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: #e5e9ec;
    border-radius: 10px;
}
.tag-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 0px;
}
.tag-name {
    flex-grow: 1;
    color: #333;
    font-size: 0.9rem;
}
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    white-space: nowrap;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: #000;
}

.tag-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.delete-form {
    margin: 0;  /* Remove any default form margins */
    line-height: 0;  /* Remove any line-height spacing */
    display: inline-flex;  /* Keep form inline */
}

.btn-edit, .btn-delete, .btn-deactivate {
    background-color: #504c4c;
    color: #fcf9f9;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    height: 24px;
    width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



.btn-edit i, .btn-delete i {
    font-size: 12px;
}

.btn-delete:hover {
    background-color: #c82333;
}

.btn-edit i, .btn-delete i {
    font-size: 12px;  /* Smaller icon size */
}


.tag-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.tag-label {
    color: #333;
}


.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.tag-filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Add new class for tag filter container */
.tag-filter-section {
    width: 100%;  /* Force it to take full width */
    margin-top: 5px;
    border-top: 1px solid #eee;
    padding-top: 5px;
    align-self: center;
}

.tag-filter-container {
    display: flex;
    flex-flow: row wrap;
    gap: 12px;
    padding: 8px 0;
    margin-top: 5px;
    align-items: center;
}

.tag-checkbox {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    padding: 2px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.tags-selection {
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 50px;
}

.tag-checkbox {
    transition: all 0.2s ease;
}

.tag-checkbox:hover {
    background-color: #e9ecef !important;
}

/*.tag-checkbox input[type="checkbox"]:checked + .tag-dot + span {
    font-weight: 500;
}*/

.tag-checkbox input[type="checkbox"]:checked {
    background-color: #6a0dad;
    border-color: #6a0dad;
}

.test-info {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}
.test-info p {
    margin: 5px 0;
    font-size: 1rem;
    font-weight: 500;
}
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

input[type="text"], 
[type="email"]
select, 
textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    margin-top: 5px;
    font-family: inherit;
    box-sizing: border-box;
}

.select-container {
    position: relative;
    width: 300px; /* Adjust as needed */
}
select option {
    max-width: 50ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input[type="file"] {
    padding: 10px;
    margin-top: 5px;
    width: 100%;
    box-sizing: border-box;
}

    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
    }
    .modal-content {
        position: relative;
        background-color: #fff;
        margin: 10% auto;
        padding: 20px;
        width: 80%;
        max-width: 800px;
        border-radius: 5px;
    }
    .close-modal {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        cursor: pointer;
    }
    .test-case-tags {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        margin-top: 10px;        
    }
    .test-case-tag {
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    .test-case-link {
        color: #007bff;
        text-decoration: none;
    }
    .test-case-link:hover {
        text-decoration: underline;
    }

    .build-select {
        max-height: 150px;
        overflow-y: auto;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 4px;
    }
    .build-option {
        margin: 5px 0;
    }
    .feature-header {
        font-size: 1.2em;
        margin: 20px 0;
        padding: 10px;
        background-color: #f5f5f5;
        border-radius: 4px;
    }
    /* assets/styles.css (add to existing) */
.api-key-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-key-mask {
    font-family: monospace;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

.inline-form {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

/* Add to your assets/styles.css */

/* Message section styling */
.message-section {
    text-align: center;
    margin: 10px 0;
    min-height: 50px;
}

.alert {
    padding: 10px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: inline-block;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Table styling */
.table {
    font-size: 14px;  /* Smaller text size */
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.table th {
    font-weight: 600;
    padding: 8px;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    padding: 8px;
    border-top: 1px solid #dee2e6;
}

/* Make buttons in table smaller */
.table .btn-sm {
    font-size: 12px;
    padding: 4px 8px;
}

/* API key text size */
.api-key-mask {
    font-size: 13px;
    font-family: monospace;
}

