* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: #2c3e50;
    color: white;
    padding: 25px;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
    font-size: 2.2rem;
}

header p {
    opacity: 0.9;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
}

.editor-panel {
    flex: 1;
    min-width: 300px;
    padding: 25px;
    background: #f8f9fa;
    border-right: 1px solid #eaecef;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.instrument-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

label {
    font-weight: 500;
    color: #2c3e50;
}

select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

select:focus {
    border-color: #3498db;
    outline: none;
}

button {
    padding: 10px 15px;
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#abc-editor {
    width: 100%;
    height: 300px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: monospace;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s;
}

#abc-editor:focus {
    border-color: #3498db;
    outline: none;
}

.display-panel {
    flex: 1.5;
    min-width: 350px;
    padding: 25px;
    background: white;
}

.display-container {
    border: 1px solid #eaecef;
    border-radius: 8px;
    padding: 20px;
    min-height: 500px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#output {
    width: 100%;
    overflow-x: auto;
}

.messages-container {
    min-height: 60px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
    display: inline-block;
}

.error {
    color: #e74c3c;
    background: #fdeded;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #e74c3c;
}

.success {
    color: #27ae60;
    background: #e6f7ee;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #27ae60;
}
.button-panel {
width: 100%;
display:flex;
flex-direction: row;
justify-content: space-between;
}
.button-panel * {
box-sizing: border-box;
}
.button-panel button {
flex: 1 0 50px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    .button-panel {
flex-direction: column;	
}
.button-panel button {
flex: 1 0 100%;
margin: 0px 0px 5px 0px;	
}
    .editor-panel {
        border-right: none;
        border-bottom: 1px solid #eaecef;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .instrument-select {
        justify-content: space-between;
    }
}

footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 20px;
}

.instructions {
    background: #e6f7ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #3498db;
}

.instructions h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.instructions ul {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
}
.abcjs-rhythm {
    transform: translateY(-20px);  
}
/* ABC.js Player Styles */
.abcjs-inline-audio {
	height: 32px;
	padding: 0 8px;
	border-radius: 12px;
	background: linear-gradient(135deg, #3498db, #2980b9);
	display: flex;
	align-items: center;
	box-sizing: border-box;
	box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
}

.abcjs-inline-audio.abcjs-disabled {
	opacity: 0.5;
}

.abcjs-inline-audio .abcjs-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-right: 4px;
	padding: 6px;
	background: rgba(255, 255, 255, 0.12) !important;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	box-sizing: border-box;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.abcjs-inline-audio .abcjs-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
	transition: left 0.6s;
}

.abcjs-inline-audio .abcjs-btn:hover::before {
	left: 100%;
}

.abcjs-btn g {
	fill: #ffffff;
	stroke: #ffffff;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.abcjs-inline-audio .abcjs-btn:hover {
	background: rgba(255, 255, 255, 0.2) !important;
	border-color: rgba(255, 255, 255, 0.3);
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.abcjs-inline-audio .abcjs-btn:hover g {
	fill: #ffffff;
	stroke: #ffffff;
}

/* Subtle button variations that blend with theme */
.abcjs-inline-audio .abcjs-midi-start {
	background: rgba(39, 174, 96, 0.3) !important;
	border: 1px solid rgba(39, 174, 96, 0.4);
}

.abcjs-inline-audio .abcjs-midi-start:hover {
	background: rgba(39, 174, 96, 0.4) !important;
	box-shadow: 0 4px 15px rgba(39, 174, 96, 0.25);
}

.abcjs-inline-audio .abcjs-midi-reset {
	background: rgba(52, 152, 219, 0.3) !important;
	border: 1px solid rgba(52, 152, 219, 0.5);
}

.abcjs-inline-audio .abcjs-midi-reset:hover {
	background: rgba(52, 152, 219, 0.4) !important;
	box-shadow: 0 4px 15px rgba(52, 152, 219, 0.25);
}

.abcjs-inline-audio .abcjs-midi-loop {
	background: rgba(155, 89, 182, 0.3) !important;
	border: 1px solid rgba(155, 89, 182, 0.4);
}

.abcjs-inline-audio .abcjs-midi-loop:hover {
	background: rgba(155, 89, 182, 0.4) !important;
	box-shadow: 0 4px 15px rgba(155, 89, 182, 0.25);
}

/* Pressed states */
.abcjs-inline-audio .abcjs-midi-selection.abcjs-pushed,
.abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed,
.abcjs-inline-audio .abcjs-midi-reset.abcjs-pushed {
	border: 1px solid rgba(255, 255, 255, 0.5) !important;
	background: rgba(255, 255, 255, 0.25) !important;
	transform: translateY(0) scale(0.95);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Play/Pause icon states */
.abcjs-inline-audio .abcjs-midi-start .abcjs-pause-svg {
	display: none;
}

.abcjs-inline-audio .abcjs-midi-start .abcjs-loading-svg {
	display: none;
}

.abcjs-inline-audio .abcjs-midi-start.abcjs-pushed .abcjs-play-svg {
	display: none;
}

.abcjs-inline-audio .abcjs-midi-start.abcjs-loading .abcjs-play-svg {
	display: none;
}

.abcjs-inline-audio .abcjs-midi-start.abcjs-pushed .abcjs-pause-svg {
	display: block;
}

/* Progress bar */
.abcjs-inline-audio .abcjs-midi-progress-background {
	background: rgba(255, 255, 255, 0.12);
	height: 18px;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	margin: 0 12px;
	position: relative;
	flex: 1;
	min-width: 120px;
	padding: 0;
	box-sizing: border-box;
	transition: all 0.3s ease;
	overflow: hidden;
}

.abcjs-inline-audio .abcjs-midi-progress-background:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.25);
}

.abcjs-inline-audio .abcjs-midi-progress-indicator {
	width: 16px;
	height: 16px;
	background: linear-gradient(135deg, #27ae60, #2ecc71);
	position: absolute;
	display: inline-block;
	border-radius: 50%;
	top: 0px;
	left: 0;
	box-sizing: border-box;
	border: 3px solid #ffffff;
	box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
	transition: all 0.2s ease;
	cursor: pointer;
	transform: translateX(-0%);
	margin-left: 0;
}

.abcjs-inline-audio .abcjs-midi-progress-indicator:hover {
	transform: translateX(-50%) scale(1.3);
	box-shadow: 0 3px 12px rgba(39, 174, 96, 0.6), 0 0 0 1px rgba(255,255,255,0.8);
}

/* Time display */
.abcjs-inline-audio .abcjs-midi-clock {
	margin: 0 8px;
	display: inline-block;
	font-family: 'Courier New', 'SF Mono', monospace;
	font-size: 13px;
	font-weight: 600;
	box-sizing: border-box;
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
	background: rgba(0, 0, 0, 0.15);
	padding: 4px 8px;
	border-radius: 6px;
	min-width: 45px;
	text-align: center;
	letter-spacing: 0.5px;
}

/* Tempo controls */
.abcjs-inline-audio .abcjs-tempo-wrapper {
	font-size: 11px;
	color: #ffffff;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 4px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
	background: rgba(0, 0, 0, 0.12);
	padding: 4px 8px;
	border-radius: 6px;
	margin-left: 4px;
}

.abcjs-inline-audio .abcjs-midi-tempo {
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.92);
	margin: 0 2px;
	width: 48px;
	padding: 3px 6px;
	box-sizing: border-box;
	font-family: 'Courier New', monospace;
	font-size: 11px;
	font-weight: 600;
	color: #2c3e50;
	text-align: center;
	transition: all 0.2s ease;
}

.abcjs-inline-audio .abcjs-midi-tempo:focus {
	outline: none;
	border-color: #27ae60;
	background: #ffffff;
	box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.3);
}

.abcjs-inline-audio .abcjs-midi-current-tempo {
	font-weight: 700;
	color: #a0e6c3;
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Loading animation */
.abcjs-inline-audio .abcjs-loading .abcjs-loading-svg {
	display: inherit;
}

.abcjs-inline-audio .abcjs-loading {
	outline: none;
	animation-name: abcjs-spin;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
}

.abcjs-inline-audio .abcjs-loading-svg circle {
	stroke: #ffffff;
	stroke-width: 3;
	stroke-linecap: round;
}

@keyframes abcjs-spin {
	from {transform:rotate(0deg);}
	to {transform:rotate(360deg);}
}

/* Large touch-friendly version */
.abcjs-large .abcjs-inline-audio {
	height: 56px;
	border-radius: 16px;
	padding: 0 16px;
	gap: 8px;
}

.abcjs-large .abcjs-btn {
	width: 48px;
	height: 48px;
	padding: 10px;
	margin-right: 6px;
}

.abcjs-large .abcjs-midi-progress-background {
	height: 10px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	margin: 0 16px;
}

.abcjs-large .abcjs-midi-progress-background:hover {
	height: 12px;
}

.abcjs-large .abcjs-midi-progress-indicator {
	height: 20px;
	width: 20px;
	top: -6px;
	border: 3px solid #ffffff;
}

.abcjs-large .abcjs-midi-progress-indicator:hover {
	transform: translateX(-50%) scale(1.4);
}

.abcjs-large .abcjs-midi-clock {
	font-size: 16px;
	margin: 0 12px;
	padding: 6px 10px;
	min-width: 55px;
}

.abcjs-large .abcjs-tempo-wrapper {
	font-size: 14px;
	padding: 6px 10px;
	gap: 6px;
}

.abcjs-large .abcjs-midi-tempo {
	font-size: 14px;
	width: 55px;
	padding: 4px 8px;
}

.abcjs-css-warning {
	display: none;
}

/* Active state for buttons */
.abcjs-inline-audio .abcjs-btn:active {
	transform: translateY(0) scale(0.95);
	transition: transform 0.1s ease;
}
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/* Responsive design */
@media (max-width: 768px) {
    #abc-player {
        padding: 15px;
        margin: 15px 0;
    }
    
    .abcjs-inline-audio {
        gap: 8px;
        padding: 12px;
    }
    
    .abcjs-btn {
        width: 40px;
        height: 40px;
    }
    
    .abcjs-midi-progress-background {
        min-width: 120px;
        margin: 0 10px;
    }
    
    .abcjs-tempo-wrapper {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .abcjs-midi-clock {
        font-size: 12px;
        padding: 4px 8px;
        min-width: 40px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #abc-player {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    #visualization {
        background: #4a5568;
        border-color: #718096;
    }
    
    .abcjs-inline-audio {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        border-color: #718096;
    }
    
    .abcjs-midi-clock,
    .abcjs-tempo-wrapper {
        background: #1a202c;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .abcjs-midi-tempo {
        background: #2d3748;
        border-color: #718096;
        color: #e2e8f0;
    }
}

/* Print container styles */
#print-container {
    /*display: none;*/
}

/* Print button style */
.print-btn {
	padding: 10px 15px;
    background: linear-gradient(to right, #27ae60, #219653);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    margin: 0px 0px 0px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Print Styles */
@media print {
    /* Hide everything when printing */
    body * {
        visibility: hidden;
    }
    .main-view {
        display: none;
    } 

    /* Show only the print container and its contents */
    #print-container,
    #print-container * {
        visibility: visible;
    }
    
    #print-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        background: white;
        display: block;
        overflow: visible;
        padding: 0;
    }
    
    /* Ensure SVG fits page width */
    #print-container svg {
        max-width: 100%;
        height: auto;
    }
    
    /* Hide the buttons when actually printing */
    #print-container button {
        display: none;
    }
    
    /* Ensure tagline is visible */
    #print-container div {
        visibility: visible;
    }
    .print-btn {
	  margin: 0px 0px 0px 10px;	
	}
}
/* Info Panel Styles */
.info-panel {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border-bottom: 1px solid #2c81ba;
}

.info-panel a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.3s;
}

.info-panel a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.info-text {
    display: flex;
    align-items: center;
}

.info-actions {
    display: flex;
    align-items: center;
}

.info-icon {
    margin-right: 6px;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-panel {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .info-text, .info-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .info-panel a {
        margin: 0 8px;
    }
}
/* Search Controls Styles */
.search-controls {
    display: flex;
    gap: 10px;
    margin-top: 0px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #3498db;
    outline: none;
}

.search-btn {
    padding: 10px 15px;
    background: linear-gradient(to right, #e67e22, #d35400);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to right, #d35400, #ba4a00);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-controls {
        flex-direction: column;
    }
}
.clear-btn {
    padding: 10px 15px;
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    margin-left: 10px;
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to right, #c0392b, #a93226);
}


