
.tools-content {
    padding: 2rem;
    width: 90%;
    margin: 0 -2rem;
    background: transparent;
}

/* Header */
.tools-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tools-header h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    letter-spacing: -1px;
}

.tools-header p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 0;
    font-weight: 300;
    line-height: 1.6;
}

/* Filtr nástrojů */
.tools-filter-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
}

.tools-filter-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.filter-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

/* Nástroje tabulka */
.tools-table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: visible;
    border: 1px solid #e9ecef;
}

.tools-table-wrapper {
    overflow-x: auto;
}

.tools-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
    table-layout: fixed;
}

.tools-table thead {
    background: #f8f9fa;
}

.tools-table th {
    padding: 1rem 2rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tools-table th.t-tool-type-header {
    width: 30%;
}

.tools-table th.t-parameters-header {
    width: 40%;
}

.tools-table th.add-tool-header {
    width: 30%;
}

.tools-table td {
    padding: 1.25rem;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    overflow: hidden;
    word-wrap: break-word;
}

.tools-table tbody tr:hover {
    background: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* Mobile card layout for tools */
.tools-mobile-container {
    display: none; /* Hidden by default on desktop */
}

/* Tool type header with filter */
.t-tool-type-header {
    position: relative;
}

.t-tool-type-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Parameters header */
.t-parameters-header {
    position: relative;
}

.t-parameters-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.t-tool-type-filter-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.t-tool-type-filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.t-tool-type-filter-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.t-tool-type-filter-btn i {
    font-size: 0.85rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.t-tool-type-filter-btn:hover i {
    color: white;
}

.active-filter-label {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
    padding: 4px 8px;
    background: #f0f4ff;
    border-radius: 4px;
    white-space: nowrap;
}

.t-tool-type-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 0.5rem;
}

.t-tool-type-filter-dropdown.show {
    display: block;
}

.t-filter-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
    color: #2c3e50;
    text-transform: none;
}

.t-filter-option:hover {
    background: #f8f9fa;
}

.t-filter-option i {
    width: 16px;
    text-align: center;
    color: #007bff;
}

.t-filter-option:first-child {
    border-radius: 8px 8px 0 0;
}

.t-filter-option:last-child {
    border-radius: 0 0 8px 8px;
}

/* Add tool header */
.add-tool-header {
    text-align: center;
}

.t-tool-filter-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 auto;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.t-tool-filter-btn:hover:not(:disabled):not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.t-tool-filter-btn:disabled,
.t-tool-filter-btn[disabled] {
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.t-tool-filter-btn:disabled:hover,
.t-tool-filter-btn[disabled]:hover {
    transform: none !important;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3) !important;
}

/* Tool name content */
.t-tool-name-content {
    min-width: 200px;
}

.t-tool-name {
    font-weight: 600;
    color: #212529;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.tool-name-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.tool-name-text > span {
    font-weight: 600;
    color: #212529;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-note {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.tool-icon {
    color: #007bff;
    font-size: 1rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}


/* Tool parameters */
.t-tool-parameters {
    min-width: 300px;
}

.t-parameter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.t-parameter-row:last-child {
    margin-bottom: 0;
}

.t-parameter-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
    min-width: 120px;
}

.t-parameter-value {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
    text-align: right;
}

/* Tool actions */
.t-tool-actions {
    text-align: center;
    min-width: 120px;
    vertical-align: middle;
}

.t-tool-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.t-tool-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    min-width: 16px;
}

.t-tool-action-btn.edit {
    background: #ffc107;
    color: #212529;
}

.t-tool-action-btn.edit:hover {
    background: #e0a800;
    transform: scale(1.1);
}

.t-tool-action-btn.delete {
    background: #dc3545;
    color: white;
}

.t-tool-action-btn.delete:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 1024px) {
    .tools-content {
        padding: 1rem;
        width: calc(100% + 2rem);
        margin: 0 -1rem;
    }
    
    .tools-header h1 {
        font-size: 2.5rem;
    }
    
    .tools-header p {
        font-size: 1.1rem;
    }
    
    /* Make filter container more mobile-friendly */
    .tools-filter-container {
        padding: 0.75rem 1rem;
    }
    
    .tools-filter-content {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .filter-row {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }
    
    .filter-label {
        font-size: 0.85rem;
    }
    
    .t-tool-type-filter-btn {
        width: 28px;
        height: 28px;
    }
    
    .t-tool-type-filter-btn i {
        font-size: 0.75rem;
    }
    
    /* Hide ticker on mobile */
    .tool-mobile-type {
        display: none;
    }
    
    /* Hide table on mobile and show card layout instead */
    .tools-table-container {
        display: none;
    }
    
    /* Mobile card layout for tools */
    .tools-mobile-container {
        display: block;
    }
    
    .tools-mobile-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .tool-mobile-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        border: 1px solid #e9ecef;
        margin-bottom: 1rem;
        padding: 1rem;
        transition: all 0.3s ease;
    }
    
    .tool-mobile-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }
    
    .tool-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #f1f3f4;
    }
    
    .tool-mobile-name {
        font-weight: 600;
        color: #212529;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .tool-mobile-name .tool-name-text {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        flex: 1;
    }
    
    .tool-mobile-name .tool-name-text > span {
        font-weight: 600;
        color: #212529;
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .tool-mobile-name .tool-note {
        font-size: 0.85rem;
        color: #6c757d;
        font-style: italic;
        font-weight: 400;
        line-height: 1.2;
    }
    
    .tool-mobile-type {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .tool-mobile-parameters {
        margin-bottom: 0.75rem;
    }
    
    .tool-mobile-parameter {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
        padding: 0.25rem 0;
    }
    
    .tool-mobile-parameter:last-child {
        margin-bottom: 0;
    }
    
    .tool-mobile-parameter-label {
        font-weight: 500;
        color: #495057;
        font-size: 0.85rem;
    }
    
    .tool-mobile-parameter-value {
        font-weight: 600;
        color: #212529;
        font-size: 0.85rem;
    }
    
    .tool-mobile-actions {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #f1f3f4;
    }
    
    .tool-mobile-action-btn {
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        min-width: 36px;
    }
    
    .tool-mobile-action-btn.edit {
        background: #ffc107;
        color: #212529;
    }
    
    .tool-mobile-action-btn.edit:hover {
        background: #e0a800;
        transform: scale(1.1);
    }
    
    .tool-mobile-action-btn.delete {
        background: #dc3545;
        color: white;
    }
    
    .tool-mobile-action-btn.delete:hover {
        background: #c82333;
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .tools-content {
        padding: 0.75rem;
    }
    
    .tools-header h1 {
        font-size: 2rem;
    }
    
    .tools-header p {
        font-size: 1rem;
    }
    
    .tools-filter-container {
        padding: 0.5rem 0.75rem;
    }
    
    .filter-row {
        gap: 0.4rem;
        flex-direction: row;
        align-items: center;
    }
    
    .filter-label {
        font-size: 0.8rem;
    }
    
    .t-tool-type-filter-btn {
        width: 26px;
        height: 26px;
    }
    
    .t-tool-type-filter-btn i {
        font-size: 0.7rem;
    }
    
    .tool-mobile-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .tool-mobile-name {
        font-size: 0.9rem;
    }
    
    .tool-mobile-type {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .tool-mobile-parameter-label,
    .tool-mobile-parameter-value {
        font-size: 0.8rem;
    }
    
    .tool-mobile-action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}
