/* Call Me If You Get Lost ID Generator Plugin Styles */
.cmiygl-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
    background-color: #f7f5f0;
    color: #2d1810;
}

/* WordPress Theme Override Rules */
.cmiygl-container * {
    box-sizing: border-box;
}

.cmiygl-container h1, 
.cmiygl-container h2, 
.cmiygl-container h3, 
.cmiygl-container h4, 
.cmiygl-container h5, 
.cmiygl-container h6 {
    font-family: 'Courier New', monospace !important;
    line-height: 1.2 !important;
}

.cmiygl-container p {
    font-family: 'Courier New', monospace !important;
}

/* Header */
.cmiygl-header {
    background-color: #2d1810 !important;
    color: white !important;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cmiygl-header, 
.cmiygl-header * {
    color: white !important;
}

.cmiygl-title {
    font-size: 2.5rem !important;
    font-weight: bold !important;
    font-family: 'Courier New', monospace !important;
    letter-spacing: 0.1em !important;
    margin: 0 0 0.5rem 0 !important;
    color: white !important;
    text-shadow: none !important;
    text-decoration: none !important;
}

.cmiygl-subtitle {
    font-size: 1.125rem !important;
    opacity: 0.9 !important;
    font-family: serif !important;
    margin: 0 !important;
    color: white !important;
    text-decoration: none !important;
}

/* Additional specificity for WordPress theme overrides */
.cmiygl-container .cmiygl-header h1.cmiygl-title,
.cmiygl-container .cmiygl-header .cmiygl-title {
    color: #ffffff !important;
    font-size: 2.5rem !important;
    font-weight: bold !important;
    font-family: 'Courier New', monospace !important;
    letter-spacing: 0.1em !important;
    margin: 0 0 0.5rem 0 !important;
    text-shadow: none !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    outline: none !important;
}

.cmiygl-container .cmiygl-header p.cmiygl-subtitle,
.cmiygl-container .cmiygl-header .cmiygl-subtitle {
    color: #ffffff !important;
    font-size: 1.125rem !important;
    opacity: 0.9 !important;
    font-family: serif !important;
    margin: 0 !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    outline: none !important;
}

/* Intro Section */
.cmiygl-intro {
    text-align: center;
    padding: 3rem 1rem;
}

.cmiygl-intro-box {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 32rem;
    margin: 0 auto;
    border: 4px solid #2d1810;
}

.cmiygl-intro-title {
    font-size: 1.875rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #2d1810;
    margin: 0 0 1rem 0;
}

.cmiygl-intro-text {
    color: #57453c;
    font-size: 1.125rem;
    margin: 0 0 1.5rem 0;
}

.cmiygl-intro-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #57453c;
}

/* Main Grid */
.cmiygl-main {
    padding: 2rem 1rem;
}

.cmiygl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 96rem;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .cmiygl-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Section */
.cmiygl-form-section {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 2px solid #e0d3c4;
}

.cmiygl-section-title {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #2d1810;
    text-align: center;
    margin: 0 0 1.5rem 0;
}

.cmiygl-label {
    display: block;
    color: #2d1810;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

/* Photo Upload */
.cmiygl-photo-upload {
    margin-bottom: 1.5rem;
}

.cmiygl-upload-area {
    border: 2px dashed #57453c;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cmiygl-upload-area:hover {
    border-color: #daa520;
    background-color: rgba(218, 165, 32, 0.1);
}

.cmiygl-upload-area.dragover {
    border-color: #daa520;
    background-color: rgba(218, 165, 32, 0.1);
}

.cmiygl-upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cmiygl-upload-area p {
    color: #57453c;
    font-family: 'Courier New', monospace;
    margin: 0;
}

.cmiygl-upload-info {
    font-size: 0.875rem;
    margin-top: 0.5rem !important;
}

.cmiygl-photo-preview {
    position: relative;
}

.cmiygl-photo-preview img {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border-radius: 0.5rem;
    margin: 0 auto 1rem;
    display: block;
}

.cmiygl-remove-photo {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmiygl-remove-photo:hover {
    background: #dc2626;
}

/* Form Fields */
.cmiygl-form-fields {
    margin-bottom: 1.5rem;
}

.cmiygl-field {
    margin-bottom: 1rem;
}

.cmiygl-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .cmiygl-field-group {
        grid-template-columns: 1fr;
    }
}

.cmiygl-input {
    width: 100%;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #57453c;
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.cmiygl-input:focus {
    outline: none;
    border-color: #daa520;
    box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.2);
}

/* Signature Section */
.cmiygl-signature-section {
    margin-bottom: 1.5rem;
}

.cmiygl-signature-container {
    border: 2px dashed #57453c;
    border-radius: 0.5rem;
    padding: 0.5rem;
    background: white;
}

.cmiygl-signature-canvas {
    width: 100%;
    height: 8rem;
    cursor: crosshair;
    border: none;
    display: block;
}

.cmiygl-signature-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.cmiygl-btn-secondary {
    background: none;
    border: none;
    color: #57453c;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.3s ease;
}

.cmiygl-btn-secondary:hover {
    color: #daa520;
}

.cmiygl-signature-status {
    font-size: 0.875rem;
    color: #57453c;
    font-family: 'Courier New', monospace;
}

/* Color Selector */
.cmiygl-color-selector {
    margin-bottom: 1.5rem;
}

.cmiygl-color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.cmiygl-color-btn {
    width: 100%;
    height: 3rem;
    border: 2px solid #2d1810;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cmiygl-color-btn:hover {
    border-color: #daa520;
}

.cmiygl-color-btn.active {
    border-color: #daa520;
    box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.3);
}

.cmiygl-color-tan {
    background-color: #b8a082;
}

.cmiygl-color-green {
    background-color: #a8c69f;
}

.cmiygl-color-pink {
    background-color: #e8b4b8;
}

.cmiygl-color-blue {
    background-color: #b8d4e8;
}

/* Generate Button */
.cmiygl-generate-section {
    text-align: center;
}

.cmiygl-btn-primary {
    background: #daa520;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cmiygl-btn-primary:hover {
    background: #cc9400;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cmiygl-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Preview Section */
.cmiygl-preview-section {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 2px solid #e0d3c4;
}

.cmiygl-preview-container {
    max-width: 28rem;
    margin: 0 auto;
}

/* ID Card */
.cmiygl-id-card {
    background: #b8a082;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 3px solid #2d1810;
    position: relative;
}

.cmiygl-id-card.color-tan {
    background: #b8a082;
}

.cmiygl-id-card.color-green {
    background: #a8c69f;
}

.cmiygl-id-card.color-pink {
    background: #e8b4b8;
}

.cmiygl-id-card.color-blue {
    background: #b8d4e8;
}

/* Star patterns */
.cmiygl-id-card::before {
    content: "★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★";
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    text-align: center;
    color: #2d1810;
    font-size: 0.75rem;
    line-height: 1;
}

.cmiygl-id-card::after {
    content: "★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★";
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    text-align: center;
    color: #2d1810;
    font-size: 0.75rem;
    line-height: 1;
}

/* ID Header */
.cmiygl-id-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.cmiygl-stars-top {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    color: #2d1810;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.cmiygl-id-title {
    color: #2d1810;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin: 0;
}

.cmiygl-license-number {
    text-align: right;
    margin-top: 0.5rem;
}

.cmiygl-license-number p {
    color: #2d1810;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    margin: 0;
}

/* ID Content */
.cmiygl-id-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cmiygl-id-photo {
    text-align: center;
}

.cmiygl-photo-frame {
    width: 100%;
    height: 6rem;
    background: #f0f0f0;
    border: 2px solid #2d1810;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.cmiygl-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cmiygl-photo-placeholder-icon {
    width: 2rem;
    height: 2rem;
    color: #57453c;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cmiygl-photo-label {
    color: #2d1810;
    font-size: 0.75rem;
    text-align: center;
    margin: 0.25rem 0 0 0;
    font-family: 'Courier New', monospace;
}

.cmiygl-id-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cmiygl-info-item {
    display: flex;
    flex-direction: column;
}

.cmiygl-info-label {
    color: #2d1810;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
}

.cmiygl-info-value {
    font-weight: bold;
    color: #2d1810;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
}

/* License Terms */
.cmiygl-license-terms {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.25rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.cmiygl-license-terms p {
    color: #2d1810;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

.cmiygl-important-section {
    text-align: center;
    margin-top: 0.5rem;
}

.cmiygl-important-title {
    color: #2d1810;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin: 0 0 0.25rem 0;
}

/* Signature Area */
.cmiygl-signature-area {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 1rem;
}

.cmiygl-signature-line {
    flex: 1;
    margin-right: 1rem;
}

.cmiygl-signature-preview {
    height: 2rem;
    border-bottom: 2px dashed #2d1810;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: end;
    overflow: hidden;
}

.cmiygl-signature-preview img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.cmiygl-signature-label {
    color: #2d1810;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    margin: 0;
}

.cmiygl-official-seal {
    width: 3rem;
    height: 3rem;
    border: 2px solid #2d1810;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmiygl-official-seal p {
    color: #2d1810;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin: 0;
}

.cmiygl-stars-bottom {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    color: #2d1810;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.cmiygl-preview-info {
    margin-top: 1rem;
    text-align: center;
}

.cmiygl-preview-info p {
    color: #57453c;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    margin: 0;
}

/* Footer */
.cmiygl-footer {
    background: #2d1810;
    color: white;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.cmiygl-footer-content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.cmiygl-hashtag {
    font-size: 1.125rem;
    font-family: 'Courier New', monospace;
    margin: 0 0 1rem 0;
}

.cmiygl-footer-text {
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

.cmiygl-footer-legal {
    font-size: 0.875rem;
    opacity: 0.75;
}

.cmiygl-footer-legal p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cmiygl-title {
        font-size: 2rem;
    }
    
    .cmiygl-intro-title {
        font-size: 1.5rem;
    }
    
    .cmiygl-section-title {
        font-size: 1.25rem;
    }
    
    .cmiygl-id-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .cmiygl-signature-area {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cmiygl-signature-line {
        width: 100%;
        margin-right: 0;
    }
}

/* Loading state */
.cmiygl-generating {
    opacity: 0.6;
    pointer-events: none;
}

.cmiygl-generating .cmiygl-btn-text::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ""; }
    40% { content: "."; }
    60% { content: ".."; }
    80%, 100% { content: "..."; }
}