@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: normal;
	src: url('fonts/IRANSansXFaNum-Regular.woff') format('woff'),   
	url('fonts/IRANSansXFaNum-Regular.woff2') format('woff2');	
}
/* 
 * Base Styles and Reset
 * Using a soft, light background to match the neumorphic aesthetic
 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
h1{
  margin-bottom: 20px; 
}
html{
    scrollbar-width: inherit;
    scrollbar-color: #e8ba5d #eeeeee;
}
body {
    font-family: IRANSansX, -apple-system, sans-serif;
    background-color: #eef1f8;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    direction: rtl; /* For Persian text */
}

/* 
 * Palette Container 
 */
#app {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 600px;
}

/* 
 * Palette Card (Neumorphic style)
 */
.palette-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), 0 2px 5px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.palette-title {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* 
 * Color Grid
 */
.colors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 
 * Individual Color Swatch
 */
.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-swatch:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 
 * Toast Notification styling
 */
#toast {
    position: fixed;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 1000;
    direction: ltr; /* Keeping hex codes LTR */
}

#toast.show {
    bottom: 30px;
    opacity: 1;
}
