/* Comic-style container panel */
.comic-box,
.comic-table-container {
    background: #fff;
    border: 4px solid #000;
    border-radius: 10px;
    box-shadow: 6px 6px 0 #000;
    padding: 20px;
    margin: 20px auto;
	    /* NEW: shrink to content width */
    width: auto;
    display: inline-block;

    position: relative;
    font-family: "Trebuchet MS", Arial, sans-serif;
}

.comic-box:before,
.comic-table-container:before {
    content: "";
    position: absolute;
    top: -12px;
    left: -12px;
    width: 100%;
    height: 100%;
    border: 4px solid #000;
    border-radius: 10px;
    opacity: 0.15;
    transform: rotate(-1deg);
    pointer-events: none;
}

/* Titles */
.comic-title,
.comic-table-title {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #222;
    text-shadow: 2px 2px 0 #fff, 3px 3px 0 #000;
}

/* Form fields */
.form-group label {
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 3px solid #000;
    border-radius: 6px;
    background: #fff;
    box-shadow: inset 2px 2px 0 #ccc;
    font-size: 15px;
}

.form-group textarea {
    height: 90px;
    resize: vertical;
}

/* Comic button */
.comic-btn {
    width: 100%;
    padding: 12px;
    background: #ffdd33;
    border: 3px solid #000;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 3px 3px 0 #000;
    transition: transform 0.1s ease-in-out;
}

.comic-btn:hover {
    background: #ffe866;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
}

/* Comic table */
.comic-table {
    width: auto;
    border-collapse: collapse;
	margin: 0 auto;
	table-layout: auto;
}

.comic-table th {
    background: #ffeb3b;
    border: 3px solid #000;
    padding: 10px;
    font-size: 16px;
}

.comic-table td {
    border: 3px solid #000;
    padding: 10px;
    background: #fafafa;
}

.comic-table tr:nth-child(even) td {
    background: #f0f0f0;
}

/* Edit button */
.comic-edit-btn {
    display: inline-block;
    padding: 6px 10px;
    background: #4caf50;
    color: #fff;
    border: 3px solid #000;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 3px 3px 0 #000;
}

.comic-edit-btn:hover {
    background: #66bb6a;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
}

/* Success banner */
.comic-success {
    background: #ffeb3b;
    border: 4px solid #000;
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 5px 5px 0 #000;
    position: relative;
    animation: popIn 0.25s ease-out;
}

.comic-success:before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border: 4px solid #000;
    border-radius: 10px;
    opacity: 0.15;
    transform: rotate(-2deg);
    pointer-events: none;
}

.comic-success-text {
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 0 #fff;
}

@keyframes popIn {
    0% { transform: scale(0.7) rotate(-3deg); opacity: 0; }
    80% { transform: scale(1.05) rotate(1deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); }
}
.comic-add-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #29b6f6;
    color: #000;
    border: 4px solid #000;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 4px 4px 0 #000;
    font-family: "Trebuchet MS", Arial, sans-serif;
    transition: transform 0.1s ease-in-out;
}

.comic-add-btn:hover {
    background: #4fc3f7;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}
.comic-top-link {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 12px;
    background: #ffeb3b;
    border: 3px solid #000;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    color: #000;
    box-shadow: 3px 3px 0 #000;
    transition: transform 0.1s ease-in-out;
}

.comic-top-link:hover {
    background: #fff176;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
}
.comic-link {
    color: #0277bd;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #0277bd;
    transition: 0.1s;
}

.comic-link:hover {
    color: #01579b;
    border-bottom-color: #01579b;
}
.comic-table-container.fullwidth {
    width: 100%;
    display: block;
    max-width: none;
}
.navbar,
.navbar * {
    position: relative;
    z-index: 2000;
}

.dropdown-menu {
    z-index: 3000;
}

header,
.comic-frame,
.comic-table-container {
    overflow: visible;
}
.series-filter {
    margin-bottom: 10px;
    font-size: 1rem;
}

.series-filter select {
    padding: 4px 8px;
    font-size: 1rem;
}
