/* PourTrait Layout Styles */

.pourtrait-layout {
    min-height: 100vh;
}

.pourtrait-sider {
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.pourtrait-logo {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 16px;
    background: #001529;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.pourtrait-logo-icon {
    font-size: 24px;
    margin-right: 8px;
    color: #1890ff;
}

.pourtrait-logo-text {
    transition: opacity 0.3s;
}

.ant-layout-sider-collapsed .pourtrait-logo-text {
    opacity: 0;
    width: 0;
}

.pourtrait-menu {
    border-right: none;
}

.pourtrait-menu .ant-menu-item a {
    color: inherit;
    text-decoration: none;
}

.pourtrait-menu .ant-menu-item a:hover {
    color: inherit;
}

.pourtrait-header {
    background: #fff;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 10;
}

.pourtrait-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.pourtrait-header-left {
    flex: 1;
}

.pourtrait-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pourtrait-breadcrumb {
    margin: 0;
}

.pourtrait-username {
    margin: 0 8px;
    font-weight: 500;
}

.pourtrait-content {
    margin: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    min-height: calc(100vh - 160px);
}

.pourtrait-content-wrapper {
    /* Additional content styling can go here */
}

.pourtrait-footer {
    text-align: center;
    background: #f0f2f5;
}

.pourtrait-footer-content {
    padding: 12px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pourtrait-content {
        margin: 16px;
        padding: 16px;
    }

    .pourtrait-header {
        padding: 0 12px;
    }

    .pourtrait-header-content {
        flex-direction: column;
        height: auto;
        padding: 8px 0;
    }

    .pourtrait-header-left {
        order: 2;
        width: 100%;
    }

    .pourtrait-header-right {
        order: 1;
        width: 100%;
        justify-content: flex-end;
        margin-bottom: 8px;
    }
}

/* Override AntDesign NavLink active styles */
.ant-menu-item .active {
    color: #1890ff;
    font-weight: 600;
}

.ant-menu-item .active::after {
    border-right: 3px solid #1890ff;
}

/* Custom dropdown styles */
.ant-dropdown-menu-item form button {
    width: 100%;
    text-align: left;
}

/* Page-specific styles */
.pourtrait-page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.pourtrait-page-title {
    margin-bottom: 8px;
}

.pourtrait-page-title .anticon {
    margin-right: 8px;
}

.pourtrait-page-description {
    color: rgba(0, 0, 0, 0.65);
    margin-bottom: 0;
}

/* Statistics cards */
.pourtrait-stats-row {
    margin-bottom: 24px;
}

.pourtrait-stat-card {
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.pourtrait-stat-card:hover {
    border-color: #1890ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Action cards */
.pourtrait-action-cards {
    margin-top: 24px;
}

.pourtrait-action-card {
    height: 100%;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.pourtrait-action-card:hover {
    border-color: #1890ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pourtrait-card-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.pourtrait-card-icon {
    font-size: 24px;
    margin-right: 8px;
    color: #1890ff;
}

.pourtrait-card-description {
    color: rgba(0, 0, 0, 0.65);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Table styles for wine search */
.pourtrait-wines-table {
    margin-top: 16px;
}

.pourtrait-wines-table .ant-table-thead > tr > th {
    background: #fafafa;
    font-weight: 600;
}

/* Search card styles */
.pourtrait-search-card {
    margin-bottom: 24px;
}

.pourtrait-search-controls {
    align-items: flex-end;
}

.pourtrait-search-input .ant-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.pourtrait-page-size-select {
    width: 100%;
}

/* Results card */
.pourtrait-results-card {
    margin-top: 24px;
}

.pourtrait-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.pourtrait-pagination {
    margin-top: 16px;
    text-align: center;
}

/* Error alert */
.pourtrait-error-alert {
    margin-bottom: 24px;
}

.pourtrait-success-alert {
    margin-bottom: 24px;
}

.pourtrait-edit-card {
    margin-top: 24px;
}

.pourtrait-image-section {
    margin-top: 32px;
}

.pourtrait-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.pourtrait-image-card {
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pourtrait-image-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.pourtrait-image-meta {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pourtrait-image-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.pourtrait-image-links a {
    color: #1890ff;
}

/* Responsive adjustments for cards */
@media (max-width: 768px) {
    .pourtrait-stats-row .ant-col,
    .pourtrait-action-cards .ant-col {
        margin-bottom: 16px;
    }

    .pourtrait-card-title {
        font-size: 16px;
    }

    .pourtrait-card-icon {
        font-size: 20px;
    }
}