/* Book List Styles */
.book-list-container {
    padding: 20px;

    .book-card {
        transition: transform 0.2s, box-shadow 0.2s;
        border: 1px solid #adadad;
        padding: 0;
        border-radius: 5px;
        overflow: hidden;
        width: 250px;
        color: inherit;
        text-decoration: none;

        &:focus {
            outline: none;
            box-shadow: none;
            color: inherit;
            text-decoration: none;
        }

        &:hover {
            transform: translateY(-6px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            border-color:rgb(104, 167, 199);
            color: inherit;
            text-decoration: none;
        }

        & img {
            width: 250px;
        }

        .card-title {
            display: inline-block;
            background-color: #eee8d8;
            color: #333;
            text-shadow: 1px 1px 1px #ffffff;
            font-size: 1.3em;
            width: 100%;
            padding: 14px 5px;
            text-align: center;
        }
    }
}

/* Add Book Form Styles */
.add-book-container {
    padding: 20px;

    .card {
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);

        .card-header {
            background-color: #f8f9fa;
            border-bottom: 1px solid #ddd;
            padding: 15px 20px;

            & h4 {
                margin: 0;
                color: #333;
            }
        }

        .card-body {
            padding: 20px;

            .form-group {
                margin-bottom: 20px;

                & label {
                    font-weight: 600;
                    color: #333;
                    margin-bottom: 5px;
                }

                .form-control {
                    border-radius: 4px;
                    border: 1px solid #ccc;

                    &:focus {
                        border-color: #007bff;
                        box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
                    }
                }

                .alert-info {
                    background-color: #d1ecf1;
                    border-color: #bee5eb;
                    color: #0c5460;
                }
            }

            .btn {
                border-radius: 4px;
                padding: 8px 16px;
            }
        }
    }
}

/* Login Prompt Styles */
.login-prompt-container {
    padding: 20px;
    display: flex;
    justify-content: center;

    .login-prompt-card {
        background: white;
        border: 1px solid #ddd;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        overflow: hidden;
        width: 100%;
        max-width: 800px;

        .login-prompt-body {
            font-size: 16px;
            padding: 40px;

            .login-prompt-icon {
                text-align: center;
                margin-bottom: 30px;
            }

                & h3 {
                color: #333;
                font-size: 1.8em;
                font-weight: 400;
                text-align: center;
                margin-bottom: 20px;
            }

                & p {
                font-size: 1.1em;
                line-height: 1.6;
                color: #666;
                text-align: center;
                margin-bottom: 15px;
            }

            .login-prompt-actions {
                text-align: center;
                margin: 30px 0;

                .google-signin-section {
                    text-align: center;
                    margin-bottom: 20px;
                    padding: 10px 0;

                    .g_id_signin {
                        margin: 0 auto;
                        display: inline-block;
                        transform: scale(1.5);
                        transform-origin: center;
                    }

                    /* Additional styling for Google Sign-In elements */
                    .g_id_signin * {
                        line-height: 1.4 !important;
                    }
                }

                .login-divider {
                    text-align: center;
                    margin: 20px 0;
                    position: relative;

                    & span {
                        background: white;
                        padding: 0 15px;
                        color: #666;
                        font-weight: 500;
                        position: relative;
                        z-index: 1;
                    }

                    &::before {
                        content: '';
                        position: absolute;
                        top: 50%;
                        left: 0;
                        right: 0;
                        height: 1px;
                        background: #dee2e6;
                        z-index: 0;
                    }
                }

                .btn {
                    display: inline-block;
                    margin: 0 10px 15px 10px;
                    padding: 12px 30px;
                    font-size: 1.1em;
                    border-radius: 6px;
                    text-decoration: none;
                    transition: all 0.3s ease;

                    &.btn-primary {
                        background-color: #007bff;
                        border-color: #007bff;

                        &:hover {
                            background-color: #0056b3;
                            border-color: #0056b3;
                            transform: translateY(-2px);
                            box-shadow: 0 4px 8px rgba(0,123,255,0.3);
                        }
                    }

                    &.btn-default {
                        background-color: #f8f9fa;
                        border-color: #dee2e6;
                        color: #495057;

                        &:hover {
                            background-color: #e9ecef;
                            border-color: #adb5bd;
                            color: #212529;
                            transform: translateY(-2px);
                            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
                        }
                    }

                    & span {
                        margin-right: 8px;
                    }
                }
            }

            .login-prompt-features {
                background-color: #f8f9fa;
                border-radius: 8px;
                padding: 25px;
                margin-top: 30px;

                & h4 {
                    color: #333;
                    font-size: 1.3em;
                    margin-bottom: 15px;
                    text-align: center;
                }

                & ul {
                    list-style: none;
                    padding: 0;
                    margin: 0;

                    & li {
                        padding: 8px 0;
                        color: #555;
                        font-size: 1em;
                        position: relative;
                        padding-left: 25px;

                        &:before {
                            content: "✓";
                            color: #28a745;
                            font-weight: bold;
                            position: absolute;
                            left: 0;
                        }
                    }
                }
            }
        }
    }
}

/* Responsive adjustments for login prompt */
@media (max-width: 768px) {
    .login-prompt-container {
        padding: 20px 15px;
        min-height: auto; /* Allow content to determine height on mobile */

        .login-prompt-card {
            .login-prompt-body {
                padding: 25px 20px;

                .login-prompt-actions .btn {
                    display: block;
                    width: 100%;
                    margin: 0 0 15px 0;
                }

                & h3 {
                    font-size: 1.5em;
                }
            }
        }
    }
}
