/* Companies View Page Styles */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
}

.brand {
    text-align: left;
}

.brand h1 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.brand p {
    margin: 0;
    font-size: 0.75rem;
    color: #666;
}

.header-left {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    margin-left: 1rem;
}

.search-box input {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 200px;
}

.search-box i {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 1rem;
}

.content-wrapper {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.page-title {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.add-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.add-btn i {
    margin-left: 0.5rem;
}

/* Table Styles */
.table-container {
    padding: 1rem;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: #f9fafb;
}

/* Column Widths */
.serial-column {
    width: 10%;
}

.name-column {
    width: 20%;
}

.description-column {
    width: 40%;
}

.type-column {
    width: 15%;
}

.actions-column {
    width: 15%;
    text-align: center;
}

/* Action Buttons */
.actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.edit-btn,
.delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.edit-btn {
    background-color: #3b82f6;
    color: white;
}

.delete-btn {
    background-color: #ef4444;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    gap: 0.5rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e4e4e7;
    border-radius: 4px;
    background-color: white;
    color: #71717a;
    font-size: 0.875rem;
    cursor: pointer;
}

.pagination-btn.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination-btn.prev,
.pagination-btn.next {
    width: 32px;
}

/* Sidebar Styles */
.sidebar {
    width: 64px;
    background-color: #fff;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.75rem;
}

.sidebar-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.sidebar-item.active {
    color: #2563eb;
    position: relative;
}

.sidebar-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background-color: #2563eb;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        flex-direction: row;
        padding: 0.5rem 0;
    }
    
    .sidebar-menu {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .sidebar-item {
        padding: 0.5rem;
    }
    
    .sidebar-item.active::after {
        top: 0;
        right: 0;
        width: 100%;
        height: 3px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .add-btn {
        width: 100%;
        justify-content: center;
    }
}
