:root {
    --hexagreen: #62c467;
    --hexablue: #0099ff;
    --hexagrey: #788787;
}

* {
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-size: 14px;
    color: #444;
    min-height: 80vh;
}

.header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    padding-top: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.content {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

a:link,
a:visited,
.link {
    color: #0099ff;
    text-decoration: none;
    cursor: pointer;
}

a:hover,
.link:hover {
    text-decoration: underline;
    color: #007acc;
}

h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.login-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
    box-sizing: border-box;
}

.login-container h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1rem;
    width: 300px;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: #666;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 20px;
    color: #999;
}

.input-with-icon input {
    width: 100%;
    padding: 0.75rem;
    padding-left: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #62c467;
    box-shadow: 0 0 0 3px rgba(98, 196, 103, 0.1);
}

button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    background-color: #62c467;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

button[type="submit"]:hover {
    background-color: #4ea553;
}

button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#msg {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

#msg.error {
    background-color: #fff2f2;
    color: #ff4444;
    border: 1px solid #ffcdd2;
}

#msg.success {
    background-color: #e8f5e9;
    color: #62c467;
    border: 1px solid #c3e6cb;
}

.register-link,
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.register-link a,
.login-link a {
    color: #0099ff;
    text-decoration: none;
}

.register-link a:hover,
.login-link a:hover {
    color: #007acc;
    text-decoration: underline;
}

.password-feedback {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.password-strength {
    background-color: #eee;
    border-radius: 3px;
    height: 4px;
    margin-bottom: 8px;
}

.strength-bar {
    width: 0;
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s, background-color 0.3s;
}

.strength-text {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 10px;
}

.password-requirements {
    font-size: 12px;
    color: #666;
}

.requirement {
    margin: 3px 0;
}

.requirement::before {
    content: "✗";
    color: #ff4444;
}

.requirement.met::before {
    content: "✓";
    color: #62c467;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.search-bar input:focus {
    border-color: #62c467;
    outline: none;
    box-shadow: 0 0 0 3px rgba(98, 196, 103, 0.1);
}

.search-bar button {
    width: auto;
    padding: 8px 16px;
    white-space: nowrap;
    background-color: #62c467;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-bar button:hover {
    background-color: #4ea553;
}

.columns-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
}

#left-section {
    width: 20%;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

#middle-section {
    width: 30%;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

#right-section {
    flex: 1;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.category-item:hover {
    background-color: rgba(98, 196, 103, 0.1);
}

.category-item.active {
    background-color: rgba(98, 196, 103, 0.2);
}

.category-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    color: #62c467;
}

.category-name {
    flex: 1;
    color: #333;
}

.category-info-count {
    color: #888;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: 200px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.info-item:hover {
    background-color: rgba(98, 196, 103, 0.1);
}

.info-item.active {
    background-color: rgba(98, 196, 103, 0.2);
}

.info-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.info-item-category {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.category-icon-small {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    color: #62c467;
}

.category-name-small {
    color: #666;
}

.info-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    color: #62c467;
}

.info-name {
    flex: 1;
    color: #333;
}

.info-placeholder {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.info-details {
    min-height: 200px;
}

.info-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    gap: 10px;
}

.info-header-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.info-icon-large {
    width: 32px;
    height: 32px;
    color: #62c467;
}

.info-header h4 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    color: #333;
}

.info-content {
    margin-top: 15px;
    margin-bottom: 15px;
}

.info-meta {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
}

.info-meta p {
    margin: 5px 0;
}

.info-val-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.details-placeholder {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    color: #ff4444;
    text-align: center;
    padding: 20px;
}

.info-field {
    margin-bottom: 10px;
    border-radius: 4px;
}

#new-info-fields .info-field {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    background: white;
    padding: 10px;
}

#add-field-container {
    margin-top: 10px;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    color: var(--hexa-blue) !important;
    transition: all 0.2s;
}

#add-field-container:hover {
    background: #e9ecef;
}

.info-field-handle {
    display: flex;
    align-items: center;
    cursor: move;
    padding: 5px;
}

.info-field-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

#info-details .info-field {}

#info-details .info-label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

#info-details .info-label-text {
    flex: 1;
    font-size: 0.9em;
    color: #666;
}

#info-details .info-val {}

#info-details .info-val-text {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-weight: 600;
}

#info-details .info-val-text:hover {
    background: #E6F7FF;
}

.drag-handle {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    cursor: move;
    transition: opacity 0.2s;
}

.drag-handle:hover {
    opacity: 1;
}

.info-field.ui-sortable-helper {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.new-info-label {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.new-info-val {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-height: 60px;
    resize: vertical;
}

.info-action-btn {
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin-left: 10px;
}

.info-action-btn:hover {
    background-color: rgba(98, 196, 103, 0.1);
}

.info-action-btn img {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.info-action-btn:hover img {
    opacity: 1;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    background-color: #62c467;
    color: white;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #4ea553;
}

#template-container {
    background: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

.template-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.template-item img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.template-item:hover {
    background-color: rgba(98, 196, 103, 0.1);
}

.new-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
}

.new-info-header-fields {
    display: flex;
    gap: 15px;
    flex: 1;
}

#new-info-name {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.new-info-category {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    min-width: 120px;
}

#new-info-icon {
    width: 32px;
    height: 32px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.new-info-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.new-info-actions .btn,
.new-info-actions .cancel-btn {
    flex: 1;
    text-align: center;
    min-width: 120px;
}

.cancel-btn {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #ddd;
}

.cancel-btn:hover {
    background-color: #dee2e6;
    color: #212529;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.modal-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    padding-right: 10px;
}

.icon-category {
    margin-bottom: 20px;
}

.icon-category-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 4px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 10px;
    padding: 10px;
}

.icon-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-item:hover {
    border-color: #62c467;
}

.icon-item.selected {
    border-color: #62c467;
    background-color: rgba(98, 196, 103, 0.1);
}

.icon-item img {
    width: 24px;
    height: 24px;
}

.password-match {
    font-size: 12px;
    margin-top: 5px;
}

.password-match.success {
    color: #62c467;
}

.password-match.error {
    color: #ff4444;
}

/* Options Page Styles */
.options-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.options-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.categories-list,
.templates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item-manage,
.template-item-manage {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    gap: 10px;
}

.category-item-manage:hover,
.template-item-manage:hover {
    background: #f0f0f0;
}

.template-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.template-name {
    font-weight: 600;
    color: #333;
}

.template-category {
    font-size: 0.9em;
    color: #666;
}

.category-actions,
.template-actions {
    display: flex;
    gap: 5px;
}

.action-btn {
    padding: 5px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: rgba(98, 196, 103, 0.1);
}

.action-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.action-btn:hover img {
    opacity: 1;
}

.icon-select {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px;
    transition: border-color 0.2s;
}

.icon-select:hover {
    border-color: #62c467;
}

.icon-select img {
    width: 100%;
    height: 100%;
}

.template-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.field-name {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.remove-field {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.remove-field:hover {
    background-color: rgba(255, 68, 68, 0.1);
}

.remove-field img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.remove-field:hover img {
    opacity: 1;
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions .btn,
.form-actions .cancel-btn {
    min-width: 100px;
}

#info-delete-container {
    margin-top: 20px;
    text-align: center;
}

.delete-btn {
    color: #ff4444;
}

.side-nav ul li {
    list-style: none;
}

.side-nav ul li a {
    font-weight: 600;
    display: block;
    padding: 10px;
}

@media (max-width: 768px) {
    .options-container {
        padding: 10px;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .section-header .btn {
        width: 100%;
    }
}

/* Confirmation Modal Styles */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.confirm-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
}

.confirm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.confirm-modal-header h4 {
    margin: 0;
    color: #333;
}

.confirm-modal-close {
    cursor: pointer;
    font-size: 24px;
    color: #666;
}

.confirm-modal-body {
    margin-bottom: 20px;
}

.confirm-modal-footer {
    text-align: right;
}

.confirm-modal-footer button {
    margin-left: 10px;
}

.options-category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.options-category-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    gap: 10px;
}

.options-category-sort-handle {
    cursor: move;
    padding: 5px;
    display: flex;
    align-items: center;
}

.options-category-icon {
    display: flex;
    align-items: center;
}

.options-category-icon img {
    width: 32px;
    height: 32px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.options-category-icon:hover {
    border-color: #62c467;
}

.options-category-name-input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 32px;
    box-sizing: border-box;
}

.options-category-delete {
    padding: 5px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.options-category-delete:hover {
    opacity: 1;
}

/* Delete Modal Styles */
.delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.delete-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
}

.delete-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.delete-modal-header h4 {
    margin: 0;
    color: #333;
}

.delete-modal-close {
    cursor: pointer;
    font-size: 24px;
    color: #666;
}

.delete-modal-body {
    margin-bottom: 20px;
}

.delete-modal-footer {
    text-align: right;
}

.delete-modal-footer button {
    margin-left: 10px;
}

/* Side Navigation Styles */
.side-nav ul li {
    margin-bottom: 5px;
}

.side-nav ul li a {
    display: block;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.side-nav ul li a:hover {
    background: #f8f9fa;
    color: #333;
}

.side-nav ul li a.active {
    background: var(--hexagreen);
    color: white;
}

.options-add-category-link {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    color: var(--hexa-blue) !important;
    transition: all 0.2s;
}

.options-add-category-link:hover {
    background: #e9ecef;
}

/* Template Management Styles */
.options-templates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.options-templates-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    gap: 10px;
}

.options-templates-sort-handle {
    cursor: move;
    padding: 5px;
    display: flex;
    align-items: center;
}

.options-templates-icon {
    display: flex;
    align-items: center;
}

.options-templates-icon img {
    width: 32px;
    height: 32px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.options-templates-icon:hover {
    border-color: #62c467;
}

.options-templates-meta-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
}

.options-templates-name-input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 32px;
    box-sizing: border-box;
}

.options-templates-category {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 32px;
    min-width: 150px;
}

.options-templates-fields {
    flex: 2;
}

.options-templates-fields-input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 32px;
    box-sizing: border-box;
}

.options-templates-delete {
    padding: 5px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.options-templates-delete:hover {
    opacity: 1;
}

.options-add-template-link {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    color: #666;
    transition: all 0.2s;
}

.options-add-template-link:hover {
    background: #e9ecef;
    color: #333;
}

#nav-links a:link,
#nav-links a:visited {
    display: inline-block;
    margin-left: 15px;
}

.options-category-counts {
    display: flex;
    gap: 8px;
    margin: 0 8px;
    color: #666;
    font-size: 0.9em;
    width: 150px;
}

.options-category-info-count::before {
    content: "Items: ";
}

.options-category-template-count::before {
    content: "Templates: ";
}

.footer {
    text-align: center;
    margin-bottom: 20px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    margin-top: 40px;
}

#edit-info-file-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: left;
    justify-content: left;
    gap: 10px;
    margin-top: 10px;
}

#file-upload-btn {
    display: inline-block;
    background-image: url('/images/attach.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    background-size: 24px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    transition: all 0.2s;
}

#file-upload-btn:hover {
    background-color: #e9ecef;
}

#edit-info-file {
    display: none;
}

.info-attachments {
    flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.info-attachment {
    width: 48px;
    height: 48px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.info-attachment:hover {
    background-color: #e9ecef;
}

.file-pdf {
    background-image: url('/images/pdf.png');
}

.file-image {
    background-image: url('/images/image.png');
}

.file-other {
    background-image: url('/images/file.png');
}

.file-doc {
    background-image: url('/images/doc.png');
}

.file-sheet {
    background-image: url('/images/sheet.png');
}

.file-ppt {
    background-image: url('/images/ppt.png');
}

.file-zip {
    background-image: url('/images/zip.png');
}

#file-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.file-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.file-delete {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    margin-right: 8px;
}

.file-delete:hover {
    opacity: 1;
}

.file-delete img {
    width: 16px;
    height: 16px;
}

#upload-progress {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--hexagreen);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.progress-percentage {
    font-weight: bold;
    color: var(--hexagreen);
}

/* Dropdown Menu Styles */
.menu-container {
    position: relative;
    display: inline-block;
}

.menu-trigger {
    cursor: pointer;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.menu-trigger:hover {
    background: #e9ecef;
    border-color: #ccc;
}

.menu-icon {
    font-size: 18px;
    color: #666;
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.menu-dropdown.show {
    display: block;
}

.menu-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.menu-dropdown a:last-child {
    border-bottom: none;
}

.menu-dropdown a:hover {
    background: #f8f9fa;
    color: var(--hexagreen);
}

/* Cloudflare Turnstile Captcha Styles */
.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    width: 100%;
}

.cf-turnstile iframe {
    border-radius: 4px;
}

.column-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 10px;
}

.column-header h3 {
    margin: 0;
}

#category-toggle,
#info-toggle {
    display: none;
}

@media (max-width: 768px) {
    .content {
        width: 98%;
    }

    .login-container {
        margin: 5px;
        box-shadow: none;
        padding: 20px;
    }

    .columns-container {
        flex-direction: column;
    }

    #left-section,
    #middle-section,
    #right-section {
        width: 100%;
    }

    #category-toggle,
    #info-toggle {
        display: block;
    }

    .new-info-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .new-info-header-fields {
        flex-direction: column;
    }

    .options-category-counts {
        display: none;
    }

    .options-templates-item {
        align-items: flex-start;
    }

    .options-templates-meta-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }
}

/* Account Page Styles */
.account-page-container {
    max-width: 1000px;
    margin: 0 auto;
}

.account-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.account-page-header h2 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.account-page-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.account-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.account-section-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.account-section-header {
    background: linear-gradient(135deg, #62c467 0%, #4ea553 100%);
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.account-section-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.account-section-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.account-section-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.account-section-content {
    padding: 25px;
}

.account-info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.account-info-item:last-child {
    border-bottom: none;
}

.account-info-label {
    color: #666;
    font-weight: 500;
}

.account-info-value {
    color: #333;
    font-weight: 600;
}

.account-success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #62c467;
}

.account-success-message svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.account-pro-status {
    text-align: center;
}

.account-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b6914;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 20px;
}

.account-pro-badge svg {
    width: 20px;
    height: 20px;
}

.account-pro-details {
    text-align: left;
}

.account-pro-renewal {
    margin-bottom: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.account-pro-label {
    color: #666;
    font-weight: 500;
    display: block;
}

.account-pro-date {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

.account-pro-features {
    margin-top: 15px;
}

.account-pro-feature-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.account-pro-feature-list li {
    padding: 5px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.account-pro-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #62c467;
    font-weight: bold;
}

.account-free-status {
    text-align: center;
}

.account-free-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    color: #666;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 20px;
}

.account-free-badge svg {
    width: 20px;
    height: 20px;
}

.account-upgrade-section {
    text-align: left;
}

.account-upgrade-text {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.account-upgrade-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.account-upgrade-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

.account-upgrade-feature svg {
    width: 16px;
    height: 16px;
    color: #62c467;
    flex-shrink: 0;
}

.account-upgrade-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #62c467 0%, #4ea553 100%);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.account-upgrade-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(98, 196, 103, 0.3);
    text-decoration: none;
    color: white;
}

.account-upgrade-price {
    color: white;
}

.account-security-actions {
    margin-bottom: 20px;
}

.account-action-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.account-action-button:hover {
    background: #e9ecef;
    border-color: #62c467;
    color: #62c467;
}

.account-action-button svg {
    width: 18px;
    height: 18px;
}

.account-password-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.account-form-group {
    margin-bottom: 20px;
}

.account-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
}

.account-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.account-submit-button {
    flex: 1;
    background: #62c467;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.account-submit-button:hover {
    background: #4ea553;
}

.account-cancel-button {
    flex: 1;
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.account-cancel-button:hover {
    background: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-page-container {
        padding: 15px;
    }

    .account-page-header h2 {
        font-size: 2rem;
    }

    .account-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .account-section-header {
        padding: 20px;
    }

    .account-section-content {
        padding: 20px;
    }

    .account-form-actions {
        flex-direction: column;
    }
}