/* Coloring Book - Complete Styling */

.tool-page {
    padding-top: 0;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: #f59e0b;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ddd;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

.tool-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-header::before {
    content: '🎨🖍️✏️';
    position: absolute;
    font-size: 300px;
    opacity: 0.05;
    top: -50px;
    right: -50px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tool-header-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tool-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 16px;
}

.meta-separator {
    opacity: 0.5;
}

.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

.coloring-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.coloring-header {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 30px;
    border: 3px solid rgba(245, 158, 11, 0.2);
}

.coloring-header h2 {
    color: #f59e0b;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.coloring-header p {
    color: #6b7280;
    font-size: 16px;
}

/* Category Section */
.category-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: block;
}

.category-section h3 {
    color: #f59e0b;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
}

.category-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f3f4f6;
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    font-size: 15px;
    color: #374151;
}

.category-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
}

.category-btn span {
    font-size: 20px;
}

/* Pages Gallery */
.pages-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.page-card {
    background: white;
    border-radius: 15px;
    border: 3px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.page-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.3);
    border-color: #f59e0b;
}

.page-preview {
    width: 100%;
    height: 200px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    padding: 20px;
    border-bottom: 3px solid #e5e7eb;
}

.page-info {
    padding: 15px;
    text-align: center;
}

.page-title {
    font-size: 16px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 5px;
}

.page-category {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

/* Coloring Canvas Section */
.coloring-canvas-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 3px solid rgba(245, 158, 11, 0.2);
    display: none;
}

.coloring-canvas-section > * {
    display: block;
}

.color-tools {
    display: grid !important;
}

.canvas-wrapper {
    display: flex !important;
}

.canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.canvas-header h3 {
    color: #f59e0b;
    font-size: 24px;
    font-weight: 800;
}

.btn-back {
    padding: 12px 24px;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Color Tools */
.color-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.palette-section,
.tools-section,
.actions-section {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.palette-section h4,
.tools-section h4,
.actions-section h4 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 15px;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 10px;
}

.color-btn {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.color-btn.active {
    border-color: #f59e0b;
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.tool-buttons,
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-btn,
.action-btn {
    padding: 12px 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tool-btn:hover,
.action-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.tool-btn.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
}

.action-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
}

.action-btn.save {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Canvas Wrapper */
.canvas-wrapper {
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

#coloringCanvas {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border: 2px solid #f3f4f6;
    border-radius: 8px;
}

#coloringCanvas path {
    transition: fill 0.2s ease;
}

#coloringCanvas path:hover {
    opacity: 0.8;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.info-box h4 {
    color: #92400e;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    line-height: 1.7;
    font-size: 14px;
    color: #555;
    border: 2px solid rgba(245, 158, 11, 0.2);
}

.info-item strong {
    color: #92400e;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Features Box */
.features-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    margin-top: 30px;
}

.features-box h4 {
    color: #1e40af;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.features-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-box li {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: #1e3a8a;
    font-size: 14px;
    line-height: 1.6;
    border: 2px solid rgba(59, 130, 246, 0.1);
}

.features-box li strong {
    color: #1e40af;
}

/* SEO Content */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.content-article strong {
    color: #333;
    font-weight: 700;
}

/* Related Tools */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    color: #f59e0b;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #f59e0b;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 15px 22px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    font-size: 15px;
    font-weight: 600;
    z-index: 10000;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 32px;
    }
    
    .tool-subtitle {
        font-size: 16px;
    }
    
    .tool-icon-large {
        font-size: 52px;
    }
    
    .category-buttons {
        flex-direction: column;
    }
    
    .category-btn {
        width: 100%;
    }
    
    .pages-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .page-preview {
        height: 150px;
        font-size: 70px;
    }
    
    .canvas-header {
        flex-direction: column;
        text-align: center;
    }
    
    .color-tools {
        grid-template-columns: 1fr;
    }
    
    .color-palette {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    }
    
    .color-btn {
        width: 40px;
        height: 40px;
    }
    
    .canvas-wrapper {
        padding: 10px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .content-article h2 {
        font-size: 26px;
    }
}

@media (max-width: 520px) {
    .tool-header {
        padding: 40px 20px;
    }
    
    .tool-header h1 {
        font-size: 28px;
    }
    
    .tool-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .meta-separator {
        display: none;
    }
    
    .coloring-canvas-section {
        padding: 20px;
    }
    
    .notification-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        font-size: 14px;
    }
}

html {
    scroll-behavior: smooth;
}





@media (max-width:280px){
	
}

@media (max-width:767px){
	.mode-btn {
        width: auto;
    }
	.mode-selector {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
	.category-buttons {
        flex-direction: column;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
	.category-btn {
        width: auto;
    }
	.stats-card {
        flex-direction: column;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
    }
	.stats-card .stat-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0px;
	}
	.stat-icon {
		font-size: 30px;
	}

	.stat-value {
		font-size: 28px;
		font-weight: 900;
		color: #10b981;
	}

	.stat-label {
		font-size: 12px;
		color: #6b7280;
		font-weight: 600;
	}
}

@media (max-width:1024px) and (min-width:768px) {
		.mode-btn {
        width: auto;
    }
	.mode-selector {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
	.category-buttons {
        flex-direction: column;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
	.category-btn {
        width: auto;
    }
	.stats-card {
        flex-direction: column;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
    }
	.stats-card .stat-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0px;
	}
	.stat-icon {
		font-size: 30px;
	}

	.stat-value {
		font-size: 28px;
		font-weight: 900;
		color: #10b981;
	}

	.stat-label {
		font-size: 12px;
		color: #6b7280;
		font-weight: 600;
	}
}
@media (max-width:1280px) and (min-width:1024px) {
	
}
@media (min-width:1280px) and (max-width:1400px) {
	.visual-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 15px;
		perspective: 1000px;
	}
}






.pages-gallery {
	grid-template-columns: repeat(8, 1fr);
	gap: 10px;
}
.page-preview {
	height: 90px;
	font-size: 54px;
	padding: 10px;
}
.page-card {
	border-radius: 10px;
}
.page-info {
	padding: 10px;
}
.page-title {
	font-size: 20px;
	line-height: 22px;
}	



@media (max-width:280px){
	
}
@media (max-width:767px){
	.pages-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
	.page-preview {
        height: 80px;
        font-size: 49px;
        padding: 10px;
    }
	.page-card {
		border-radius: 5px;
	}
	.page-info {
		padding: 5px;
	}
	.page-title {
		font-size: 16px;
		line-height: 18px;
	}
}
@media (max-width:1024px) and (min-width:768px) {
	.pages-gallery {
        grid-template-columns: repeat(6, 1fr);
        gap: 5px;
    }
	.page-preview {
        height: 80px;
        font-size: 49px;
        padding: 10px;
    }
	.page-card {
		border-radius: 5px;
	}
	.page-info {
		padding: 5px;
	}
	.page-title {
		font-size: 16px;
		line-height: 18px;
	}	
}
@media (max-width:1280px) and (min-width:1024px) {
	.pages-gallery {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
	.page-preview {
        height: 90px;
        font-size: 54px;
        padding: 10px;
    }
	.page-card {
		border-radius: 10px;
	}
	.page-info {
		padding: 10px;
	}
	.page-title {
		font-size: 20px;
		line-height: 22px;
	}
}
@media (min-width:1280px) and (max-width:1400px) {
	.pages-gallery {
        grid-template-columns: repeat(7, 1fr);
        gap: 10px;
    }
	.page-preview {
        height: 90px;
        font-size: 54px;
        padding: 10px;
    }
	.page-card {
		border-radius: 10px;
	}
	.page-info {
		padding: 10px;
	}
	.page-title {
		font-size: 20px;
		line-height: 22px;
	}	
}