/* Product Manager - Custom Styles */

:root {
    --primary: #455a64;
    --primary-dark: #263238;
    --accent: #26a69a;
}

body {
    background: #f5f5f5;
}

/* Sidenav */
.sidenav-fixed {
    width: 260px;
    background: #263238;
}

.sidenav-fixed li > a {
    color: #b0bec5 !important;
}

.sidenav-fixed li > a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff !important;
}

.sidenav-fixed li.active > a {
    background: rgba(38,166,154,0.2);
    color: #26a69a !important;
    font-weight: 500;
}

.sidenav-fixed li > a > i {
    color: inherit !important;
}

.sidenav-fixed .subheader {
    color: #78909c !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidenav-fixed .divider {
    background-color: rgba(255,255,255,0.08);
}

.sidenav-bg {
    height: 100%;
    background: linear-gradient(135deg, #1a237e 0%, #006064 100%);
}

.sidenav .user-view {
    padding: 20px 20px 10px;
}

.sidenav .user-view .name {
    font-size: 1.3rem;
    font-weight: 500;
    display: block;
    margin-top: 40px;
}

.sidenav .user-view .email {
    font-size: 0.85rem;
    opacity: 0.7;
    display: block;
}

/* Main content */
.main-content {
    padding: 20px 30px;
    max-width: 1400px;
}

@media only screen and (min-width: 993px) {
    main {
        margin-left: 260px;
    }
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h4 {
    margin: 0;
    color: #37474f;
    font-weight: 400;
}

/* Stat cards */
.stat-card {
    padding: 20px;
    border-radius: 8px;
}

.stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 300;
    margin: 0;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-top: 4px;
}

.stat-card i.material-icons {
    font-size: 2.5rem;
    float: right;
    opacity: 0.3;
    margin-top: -5px;
}

/* Cards */
.card {
    border-radius: 6px;
}

.card .card-title {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Tables */
table.striped > tbody > tr:nth-child(odd) {
    background-color: #fafafa;
}

table th {
    font-weight: 600;
    color: #455a64;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Version labels */
.version-label {
    border-radius: 12px;
    padding: 2px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
}

/* Config editor */
.config-editor {
    width: 100%;
    min-height: 400px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fafafa;
    resize: vertical;
    tab-size: 4;
}

.config-editor:focus {
    border-color: #26a69a;
    outline: none;
    background: #fff;
}

/* Action buttons in tables */
.action-btns a,
.action-btns button {
    margin: 0 2px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9e9e9e;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

/* Feature/Issue tree */
.feature-item {
    border-left: 3px solid #26a69a;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.issue-item {
    border-left: 3px solid #ef5350;
    padding: 8px 12px;
    margin: 6px 0 6px 20px;
    background: #fafafa;
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
}

.issue-item.resolved {
    border-left-color: #66bb6a;
    opacity: 0.7;
}

/* Search bar */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar .input-field {
    flex: 1;
    margin: 0;
}

/* Badge count */
.badge-count {
    background: #26a69a;
    color: #fff;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.75rem;
    margin-left: 6px;
}

/* Public page */
.public-header {
    background: linear-gradient(135deg, #1a237e 0%, #006064 100%);
    color: #fff;
    padding: 50px 0 40px;
    text-align: center;
}

.public-header h3 {
    font-weight: 300;
    margin: 0 0 8px;
}

.public-header p {
    opacity: 0.8;
    font-size: 1.1rem;
}

.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Modal overrides */
.modal {
    border-radius: 8px;
    max-height: 85%;
}

.modal .modal-content {
    padding: 24px;
}

.modal h5 {
    margin-top: 0;
    font-weight: 500;
}

/* Chips/tags */
.doc-type-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Subscription period bar */
.period-bar {
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    overflow: hidden;
    margin-top: 4px;
}

.period-bar .progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

/* Feature request image gallery */
.fr-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.fr-image-card .card-image {
    height: 160px;
    overflow: hidden;
    cursor: pointer;
}

.fr-image-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.fr-image-card .card-image img:hover {
    transform: scale(1.05);
}

.fr-image-card .card-action {
    border-top: 1px solid #eee;
}

/* Fix materialize select in modals */
.select-wrapper input.select-dropdown {
    margin-bottom: 0;
}
