:root {

    --color-near-black: #111111;

    --color-off-white: #F9F9F9;

    --color-light-gray: #EAEAEA;

    --color-medium-gray: #888888;

    --color-accent: #0052FF;

}



body {

    background-color: var(--color-off-white);

    color: var(--color-near-black);

    font-family: 'Inter', sans-serif;

}



.font-sans {

    font-family: 'Inter', sans-serif;

}



.bg-off-white { background-color: var(--color-off-white); }

.bg-light-gray { background-color: var(--color-light-gray); }

.text-near-black { color: var(--color-near-black); }

.text-medium-gray { color: var(--color-medium-gray); }

.border-light-gray { border-color: var(--color-light-gray); }

.shadow-subtle { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }



.prompt-input {

    width: 100%;

    padding: 10px;

    font-size: 1rem;

    color: var(--color-near-black);

    background-color: #FFFFFF;

    border: 1px solid var(--color-light-gray);

    border-radius: 0.5rem;

    transition: border-color 0.2s, box-shadow 0.2s;

    border-radius: 50px;

}



.prompt-input::placeholder {

    color: var(--color-medium-gray);

}



.prompt-input:focus {

    outline: none;

    border-color: var(--color-accent);

    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.2);

}



.orientation-select {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    min-height: 59px;
    padding: 1rem 2.5rem 1rem 1rem;
    background: #FFFFFF;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 2.5rem;
    border: 2px solid #e5e5e5;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    flex-shrink: 0;
}

.orientation-select:hover {
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.orientation-select:focus {
    outline: none;
    border-color: #FF0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.generate-btn {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    max-width: 336px;

    min-height: 59px;

    padding: 1rem;

    background: linear-gradient(90deg, #FF0000 0%, #7A0000 100%);

    color: #FFFFFF;

    font-weight: 600;

    border-radius: 2.5rem;

    border: none;

    cursor: pointer;

    transition: background-color 0.2s, transform 0.2s;

    margin: 0 auto;

    flex-shrink: 0;

}



.generate-btn:hover {

    background-color: #0045d1;

    transform: translateY(-2px);

}



.file-upload-btn {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    max-width: 280px;

    height: 59px;

    padding: 1rem;

    /*background-color: #FFFFFF;*/

    color: var(--color-near-black);

    font-weight: 600;

    border-radius: 0.5rem;

    /*border: 1px solid var(--color-light-gray);*/

    cursor: pointer;

    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;

    flex-shrink: 0;

}

/*

.file-upload-btn:hover {

    background-color: #fdfdfd;

    border-color: var(--color-medium-gray);

    transform: translateY(-2px);

}*/



.refinement-btn {

    padding: 0.75rem 1rem;

    font-size: 0.875rem;

    font-weight: 500;

    color: var(--color-near-black);

    background-color: #FFFFFF;

    border: 1px solid var(--color-light-gray);

    border-radius: 9999px;

    cursor: pointer;

    transition: all 0.2s ease-in-out;

}



.refinement-btn:hover {

    background-color: var(--color-near-black);

    color: #FFFFFF;

    border-color: var(--color-near-black);

    transform: translateY(-1px);

}



.purchase-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0.75rem 1.5rem;

    background-color: var(--color-near-black);

    color: #FFFFFF;

    font-weight: 600;

    border-radius: 9999px;

    border: none;

    cursor: pointer;

    transition: background-color 0.2s, transform 0.2s;

}



.purchase-btn:hover {

    background-color: #333;

    transform: scale(1.03);

}

/* White Edit Button */
.edit-btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #FFFFFF;
    color: var(--color-near-black);
    font-weight: 600;
    border-radius: 2.5rem;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edit-btn-white:hover {
    background-color: #f8f8f8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Golden Purchase Button */
.purchase-btn-golden {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(90deg, #D4AF37 0%, #F4D03F 100%);
    color: var(--color-near-black);
    font-weight: 600;
    border-radius: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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



.hidden {

    display: none;

}



.loader {

    border: 4px solid var(--color-light-gray);

    border-top: 4px solid var(--color-accent);

    border-radius: 50%;

    width: 50px;

    height: 50px;

    animation: spin 1s linear infinite;

}



@keyframes spin {

    0% { transform: rotate(0deg); }

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

}



/* Logo styling */

.logo-container {

    display: flex;

    align-items: center;

    justify-content: center;

    transition: transform 0.2s ease;

}



.logo-container:hover {

    transform: scale(1.05);

}



.logo-container svg {

    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));

}



/* Reset button styling */

.reset-btn {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    padding: 1rem;

    background-color: #FFFFFF;

    color: var(--color-near-black);

    font-weight: 600;

    border-radius: 0.5rem;

    border: 1px solid var(--color-light-gray);

    cursor: pointer;

    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;

    flex-grow: 1;

}



.reset-btn:hover {

    background-color: #f8f8f8;

    border-color: var(--color-medium-gray);

    transform: translateY(-2px);

}







.space-y-4 {

    border-radius: 50px;

    padding: 15px;

    height: 202px;

    border-top: 1px solid #bfbfbf;

    border-bottom: 1px solid #bfbfbf;

    box-shadow: 

        0 -2px 0px rgba(0, 0, 0, .3), 

        0 2px 1px rgba(0, 0, 0, .3)

}

span#image-upload-label{

    width: 219px;

    height: 59px;

    background: linear-gradient(90deg, #363636 0%, #0B5D1E 100%);

    display: flex;

    align-items: center;

    justify-content: center;

        border-radius: 50px;

        color:#FFF;

}

.flex.flex-col.sm\:flex-row.gap-4{

   justify-content: space-between; 

   align-items: center;

}

textarea#prompt-input{

        font-size: 25px;

    font-family: 'abhaya libre';

    color: #454545;

    border-color: #b2b2b2;

    height: 84px;

    overflow: hidden !important;   /* hides scrollbar */

    resize: none; 

}

section#creator-section{

    width: 100%;

    max-width: 992px;

}

.box-shadow-tb {

    box-shadow: 

        0 -4px 6px rgba(0,0,0,0.1),

        0  4px 6px rgba(0,0,0,0.1); 

}











@media screen and (max-width: 768px) {

    textarea#prompt-input {

        font-size: 16px !important;

    }

    span#image-upload-label{

        width: 170px;

        height: 50px;

        font-size: 14px;

    }

    .generate-btn{

        width: 170px;

        max-height: 50px!important;

    }

    .file-upload-btn{

        max-width: 225px;

    }

    .flex.flex-col.sm\:flex-row.gap-4{

        flex-direction: row;

    }

    #creator-section img{

        width: 24px!important;

        height: 24px!important;

    }

}

/* Image display container - adapts to image orientation */
.image-display-container {
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-light-gray);
}

.image-display-container img {
    max-width: 100%;
    max-height: 600px;
    display: block;
    width: auto;
    height: auto;
}

/* Portrait images - taller containers */
.image-display-container.portrait-image {
    min-height: 300px;
}

.image-display-container.portrait-image img {
    max-height: 600px;
    width: auto;
}

/* Landscape images - wider containers */
.image-display-container.landscape-image {
    min-height: 250px;
}

.image-display-container.landscape-image img {
    max-height: 500px;
    width: auto;
}

/* Ensure images container grid items maintain proper sizing */
#images-container .image-display-container {
    width: 100%;
}

/* Single image container specific styling */
#single-image-container.image-display-container {
    width: 100%;
    max-width: 100%;
}

@media screen and (max-width: 480px){

    span#image-upload-label{

        font-size: 10px;

        height: 34px;

    }

    span#generate-btn-text{

        font-size: 10px;

    }

    .generate-btn{

        height: 34px;

       min-height: 34px!important; 

    }

    textarea#prompt-input{

       height: 60px;

       font-size: 11px!important;

    }
    
    .image-display-container.portrait-image img {
        max-height: 400px;
    }
    
    .image-display-container.landscape-image img {
        max-height: 350px;
    }

}

/* Selection text styling */
.selection-text {
    font-size: 2rem;
    font-style: italic;
    font-weight: 600;
    color: var(--color-near-black);
    text-align: center;
    margin-bottom: 2rem;
}

.selection-message {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 500;
    color: var(--color-near-black);
    text-align: center;
    margin-top: 1rem;
    padding: 0 1rem;
}

@media screen and (max-width: 768px) {
    .selection-text {
        font-size: 1.5rem;
    }
    
    .selection-message {
        font-size: 1.2rem;
    }
}

/* Heart toggle button styling */
.heart-toggle-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.heart-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.heart-toggle-btn.favorited {
    background-color: rgba(255, 182, 193, 0.9);
    border-color: rgba(255, 105, 135, 0.5);
}

.heart-toggle-btn.favorited:hover {
    background-color: rgba(255, 182, 193, 1);
}

.heart-toggle-btn i {
    width: 20px;
    height: 20px;
    color: #333;
    transition: all 0.2s ease;
    stroke-width: 2;
}

.heart-toggle-btn.favorited i {
    color: #ff1493;
    fill: #ff1493;
    stroke: #ff1493;
}

/* Favorites list styling */
.favorites-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.favorites-header {
    text-align: center;
    margin-bottom: 2rem;
}

.favorites-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.favorite-item {
    position: relative;
    background-color: var(--color-light-gray);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.favorite-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.favorite-item img {
    width: 100%;
    height: auto;
    display: block;
}

.favorite-item-actions {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Order History Styles */
.order-item {
    background-color: #FFFFFF;
    border: 1px solid var(--color-light-gray);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
}

.order-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-light-gray);
}

.order-info {
    flex: 1;
}

.order-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-near-black);
    margin-bottom: 0.25rem;
}

.order-date {
    font-size: 0.875rem;
    color: var(--color-medium-gray);
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.order-status.pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.order-status.processing {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.order-status.completed {
    background-color: #D1FAE5;
    color: #065F46;
}

.order-status.cancelled {
    background-color: #FEE2E2;
    color: #991B1B;
}

.order-status.on-hold {
    background-color: #F3F4F6;
    color: #374151;
}

.order-content {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--color-light-gray);
}

.order-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.order-items {
    margin-bottom: 0.5rem;
}

.order-item-line {
    font-size: 0.875rem;
    color: var(--color-medium-gray);
    margin-bottom: 0.25rem;
}

.order-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-near-black);
    margin-top: 0.5rem;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-light-gray);
}

.order-action-btn {
    padding: 0.5rem 1rem;
    background-color: #FFFFFF;
    border: 1px solid var(--color-light-gray);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-near-black);
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-action-btn:hover {
    background-color: var(--color-off-white);
    border-color: var(--color-medium-gray);
}

.order-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-medium-gray);
    font-style: italic;
}

.orders-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-medium-gray);
}
}

.empty-favorites {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-medium-gray);
}

.empty-favorites h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
